diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.arabic.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.arabic.md index c36974151a..2e31e8f026 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.arabic.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.arabic.md @@ -17,19 +17,18 @@ undefined
```yml -tests: - text: '' - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' - text: '' - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' - text: '' - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' - text: '' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' - text: '' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' - text: '' - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: '' testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");' diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.chinese.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.chinese.md index 84267722d1..ff6c7e2db5 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.chinese.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.chinese.md @@ -20,17 +20,17 @@ localeTitle: 转换HTML实体 ```yml tests: - text: convertHTML("Dolce & Gabbana")应该返回Dolce &​amp; Gabbana 。 - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' - text: convertHTML("Hamburgers < Pizza < Tacos")应该返回Hamburgers &​lt; Pizza &​lt; Tacos 。 - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' - text: convertHTML("Sixty > twelve")应返回Sixty &​gt; twelve 。 - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' - text: 'convertHTML('Stuff in "quotation marks"')应该convertHTML('Stuff in "quotation marks"')返回Stuff in &​quot;quotation marks&​quot; 。' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' - text: 'convertHTML("Schindler's List")应该返回Schindler&​apos;s List 。' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' - text: convertHTML("<>")应返回&​lt;&​gt; 。 - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: convertHTML("abc")应该返回abc 。 testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");' diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.english.md index fde05d8437..55e5c530cb 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.english.md @@ -21,18 +21,18 @@ Remember to use convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.' - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' - - text: 'convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.' - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' - - text: 'convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.' - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' - - text: 'convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' - - text: 'convertHTML("Schindler's List") should return Schindler&​apos;s List.' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' - - text: 'convertHTML("<>") should return &​lt;&​gt;.' - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + - text: 'convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' + - text: 'convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' + - text: 'convertHTML("Sixty > twelve") should return Sixty > twelve.' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' + - text: 'convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' + - text: 'convertHTML("Schindler's List") should return Schindler's List.' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' + - text: 'convertHTML("<>") should return <>.' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: convertHTML("abc") should return abc. testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");' diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.portuguese.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.portuguese.md index f0c630efd1..5f9f6785a0 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.portuguese.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.portuguese.md @@ -20,17 +20,17 @@ localeTitle: Converter entidades HTML ```yml tests: - text: convertHTML("Dolce & Gabbana") deve retornar Dolce &​amp; Gabbana . - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' - text: convertHTML("Hamburgers < Pizza < Tacos") deve retornar Hamburgers &​lt; Pizza &​lt; Tacos - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' - text: convertHTML("Sixty > twelve") deve retornar Sixty &​gt; twelve . - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' - text: 'convertHTML('Stuff in "quotation marks"') deve retornar Stuff in &​quot;quotation marks&​quot; .' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' - text: 'convertHTML("Schindler's List") deve devolver a Schindler&​apos;s List .' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' - text: convertHTML("<>") deve retornar &​lt;&​gt; . - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: convertHTML("abc") deve retornar abc . testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");' diff --git a/curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.russian.md b/curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.russian.md index 01e73125a3..6a5828b665 100644 --- a/curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.russian.md +++ b/curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.russian.md @@ -20,17 +20,17 @@ localeTitle: Преобразование HTML-объектов ```yml tests: - text: convertHTML("Dolce & Gabbana") должен возвращать Dolce &​amp; Gabbana . - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' - text: convertHTML("Hamburgers < Pizza < Tacos") должны вернуть Hamburgers &​lt; Pizza &​lt; Tacos . - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' - text: convertHTML("Sixty > twelve") должен возвращать Sixty &​gt; twelve . - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' - text: 'convertHTML('Stuff in "quotation marks"') должен возвращать Stuff in &​quot;quotation marks&​quot; ,' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' - text: 'convertHTML("Schindler's List") должен возвращать Schindler&​apos;s List .' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' - text: 'convertHTML("<>") должен возвращать &​lt;&​gt; ,' - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: convertHTML("abc") должен возвращать abc . testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");' diff --git a/curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.spanish.md b/curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.spanish.md index 5f6fc940ae..b686dec77f 100644 --- a/curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.spanish.md +++ b/curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.spanish.md @@ -20,17 +20,17 @@ localeTitle: Convertir entidades HTML ```yml tests: - text: convertHTML("Dolce & Gabbana") debe devolver Dolce &​amp; Gabbana . - testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce &​amp; Gabbana.");' + testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "convertHTML("Dolce & Gabbana") should return Dolce & Gabbana.");' - text: convertHTML("Hamburgers < Pizza < Tacos") debe devolver Hamburgers &​lt; Pizza &​lt; Tacos - testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers &​lt; Pizza &​lt; Tacos.");' + testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "convertHTML("Hamburgers < Pizza < Tacos") should return Hamburgers < Pizza < Tacos.");' - text: convertHTML("Sixty > twelve") debe devolver Sixty &​gt; twelve . - testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty &​gt; twelve.");' + testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "convertHTML("Sixty > twelve") should return Sixty > twelve.");' - text: 'convertHTML('Stuff in "quotation marks"') debería devolver Stuff in &​quot;quotation marks&​quot; .' - testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in &​quot;quotation marks&​quot;.");' + testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "convertHTML('Stuff in "quotation marks"') should return Stuff in "quotation marks".");' - text: 'convertHTML("Schindler's List") debe devolver la Schindler&​apos;s List .' - testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler&​apos;s List.");' + testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "convertHTML("Schindler's List") should return Schindler's List.");' - text: convertHTML("<>") debe devolver &​lt;&​gt; . - testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return &​lt;&​gt;.");' + testString: 'assert.match(convertHTML("<>"), /<>/, "convertHTML("<>") should return <>.");' - text: convertHTML("abc") debe devolver abc . testString: 'assert.strictEqual(convertHTML("abc"), "abc", "convertHTML("abc") should return abc.");'