fix: removed all hidden chars from tests verbiage (#19674)
* fix: removed all ​ from tests verbiage * fix: added single quote to start text string * remove single quote from text line * fix: removed the hidden chars in the testStrings * fix: removed hidden chars from testString section * fix: removed hidden chars form testString part * fix: removed hidden chars from testString part * fix: removed hidden chars from testString part
This commit is contained in:
parent
c1eaa4899f
commit
65686b44e5
@ -17,19 +17,18 @@ undefined
|
||||
<section id='tests'>
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: ''
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
@ -20,17 +20,17 @@ localeTitle: 转换HTML实体
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>convertHTML("Dolce & Gabbana")</code>应该返回<code>Dolce &amp; Gabbana</code> 。
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: <code>convertHTML("Hamburgers < Pizza < Tacos")</code>应该返回<code>Hamburgers &lt; Pizza &lt; Tacos</code> 。
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: <code>convertHTML("Sixty > twelve")</code>应返回<code>Sixty &gt; twelve</code> 。
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code>应该<code>convertHTML('Stuff in "quotation marks"')</code>返回<code>Stuff in &quot;quotation marks&quot;</code> 。'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code>应该返回<code>Schindler&apos;s List</code> 。'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: <code>convertHTML("<>")</code>应返回<code>&lt;&gt;</code> 。
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: <code>convertHTML("abc")</code>应该返回<code>abc</code> 。
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
@ -21,18 +21,18 @@ Remember to use <a href='http://forum.freecodecamp.org/t/how-to-get-help-when-yo
|
||||
|
||||
```yml
|
||||
tests:
|
||||
- text: '<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
- text: '<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
- text: '<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
- text: '<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
- text: '<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: '<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: '<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: '<code>convertHTML("<>")</code> should return <code><></code>.'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: <code>convertHTML("abc")</code> should return <code>abc</code>.
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
@ -20,17 +20,17 @@ localeTitle: Converter entidades HTML
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>convertHTML("Dolce & Gabbana")</code> deve retornar <code>Dolce &amp; Gabbana</code> .
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: <code>convertHTML("Hamburgers < Pizza < Tacos")</code> deve retornar <code>Hamburgers &lt; Pizza &lt; Tacos</code>
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: <code>convertHTML("Sixty > twelve")</code> deve retornar <code>Sixty &gt; twelve</code> .
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code> deve retornar <code>Stuff in &quot;quotation marks&quot;</code> .'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code> deve devolver a <code>Schindler&apos;s List</code> .'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: <code>convertHTML("<>")</code> deve retornar <code>&lt;&gt;</code> .
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: <code>convertHTML("abc")</code> deve retornar <code>abc</code> .
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
@ -20,17 +20,17 @@ localeTitle: Преобразование HTML-объектов
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>convertHTML("Dolce & Gabbana")</code> должен возвращать <code>Dolce &amp; Gabbana</code> .
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: <code>convertHTML("Hamburgers < Pizza < Tacos")</code> должны вернуть <code>Hamburgers &lt; Pizza &lt; Tacos</code> .
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: <code>convertHTML("Sixty > twelve")</code> должен возвращать <code>Sixty &gt; twelve</code> .
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code> должен возвращать <code>Stuff in &quot;quotation marks&quot;</code> ,'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code> должен возвращать <code>Schindler&apos;s List</code> .'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: '<code>convertHTML("<>")</code> должен возвращать <code>&lt;&gt;</code> ,'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: <code>convertHTML("abc")</code> должен возвращать <code>abc</code> .
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
@ -20,17 +20,17 @@ localeTitle: Convertir entidades HTML
|
||||
```yml
|
||||
tests:
|
||||
- text: <code>convertHTML("Dolce & Gabbana")</code> debe devolver <code>Dolce &amp; Gabbana</code> .
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce &​amp; Gabbana</code>.");'
|
||||
testString: 'assert.match(convertHTML("Dolce & Gabbana"), /Dolce & Gabbana/, "<code>convertHTML("Dolce & Gabbana")</code> should return <code>Dolce & Gabbana</code>.");'
|
||||
- text: <code>convertHTML("Hamburgers < Pizza < Tacos")</code> debe devolver <code>Hamburgers &lt; Pizza &lt; Tacos</code>
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers &​lt; Pizza &​lt; Tacos</code>.");'
|
||||
testString: 'assert.match(convertHTML("Hamburgers < Pizza < Tacos"), /Hamburgers < Pizza < Tacos/, "<code>convertHTML("Hamburgers < Pizza < Tacos")</code> should return <code>Hamburgers < Pizza < Tacos</code>.");'
|
||||
- text: <code>convertHTML("Sixty > twelve")</code> debe devolver <code>Sixty &gt; twelve</code> .
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty &​gt; twelve</code>.");'
|
||||
testString: 'assert.match(convertHTML("Sixty > twelve"), /Sixty > twelve/, "<code>convertHTML("Sixty > twelve")</code> should return <code>Sixty > twelve</code>.");'
|
||||
- text: '<code>convertHTML('Stuff in "quotation marks"')</code> debería devolver <code>Stuff in &quot;quotation marks&quot;</code> .'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in &​quot;quotation marks&​quot;</code>.");'
|
||||
testString: 'assert.match(convertHTML("Stuff in "quotation marks""), /Stuff in "quotation marks"/, "<code>convertHTML('Stuff in "quotation marks"')</code> should return <code>Stuff in "quotation marks"</code>.");'
|
||||
- text: '<code>convertHTML("Schindler's List")</code> debe devolver la <code>Schindler&apos;s List</code> .'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler&​apos;s List</code>.");'
|
||||
testString: 'assert.match(convertHTML("Schindler"s List"), /Schindler's List/, "<code>convertHTML("Schindler's List")</code> should return <code>Schindler's List</code>.");'
|
||||
- text: <code>convertHTML("<>")</code> debe devolver <code>&lt;&gt;</code> .
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code>&​lt;&​gt;</code>.");'
|
||||
testString: 'assert.match(convertHTML("<>"), /<>/, "<code>convertHTML("<>")</code> should return <code><></code>.");'
|
||||
- text: <code>convertHTML("abc")</code> debe devolver <code>abc</code> .
|
||||
testString: 'assert.strictEqual(convertHTML("abc"), "abc", "<code>convertHTML("abc")</code> should return <code>abc</code>.");'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user