From 02f5609c9976ac914d2a3ed144cd06bc3fe420ec Mon Sep 17 00:00:00 2001 From: Agata Stawarz <47450693+agatapst@users.noreply.github.com> Date: Mon, 30 Mar 2020 17:23:02 +0200 Subject: [PATCH] Remove double slashes in Strip control codes challenge (#38466) * Remove double slashes in Strip control codes challenge * Remove unnecessary message argument from assertions Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- ...tended-characters-from-a-string.english.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/strip-control-codes-and-extended-characters-from-a-string.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/strip-control-codes-and-extended-characters-from-a-string.english.md index a80fb81080..1a5db5ae34 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/strip-control-codes-and-extended-characters-from-a-string.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/strip-control-codes-and-extended-characters-from-a-string.english.md @@ -25,19 +25,19 @@ On a non-ASCII based system, we consider characters that do not have a correspon ``` yml tests: - text: strip should be a function. - testString: assert(typeof strip == 'function', 'strip should be a function.'); + testString: assert(typeof strip == 'function'); - text: strip("abc") should return a string. - testString: assert(typeof strip("\ba\\x00b\n\rc\fd\xc3") == 'string', 'strip("abc") should return a string.'); - - text: strip("\\ba\\x00b\\n\\rc\\fd\\xc3") should return "abcd". - testString: assert.equal(strip("\ba\x00b\n\rc\fd\xc3"), "abcd", 'strip("\\ba\\x00b\\n\\rc\\fd\\xc3") should return "abcd".'); - - text: strip("\\u0000\\n abc\\u00E9def\\u007F") should return " abcdef". - testString: assert.equal(strip("\u0000\n abc\u00E9def\u007F"), " abcdef", 'strip("\\u0000\\n abc\\u00E9def\\u007F") should return " abcdef".'); - - text: strip("a\\n\\tb\\u2102d\\u2147f") should return "abdf". - testString: assert.equal(strip("a\n\tb\u2102d\u2147f"), "abdf", 'strip("a\\n\\tb\\u2102d\\u2147f") should return "abdf".'); + testString: assert(typeof strip("abc") == 'string'); + - text: strip("\ba\x00b\n\rc\fd\xc3") should return "abcd". + testString: assert.equal(strip("\ba\x00b\n\rc\fd\xc3"), "abcd"); + - text: strip("\u0000\n abc\u00E9def\u007F") should return " abcdef". + testString: assert.equal(strip("\u0000\n abc\u00E9def\u007F"), " abcdef"); + - text: strip("a\n\tb\u2102d\u2147f") should return "abdf". + testString: assert.equal(strip("a\n\tb\u2102d\u2147f"), "abdf"); - text: strip("Français.") should return "Franais.". - testString: assert.equal(strip("Français."), "Franais.", 'strip("Français.") should return "Franais.".'); - - text: strip("123\\tabc\\u0007DEF\\u007F+-*/€æŧðłþ") should return "123abcDEF+-*/". - testString: assert.equal(strip("123\tabc\u0007DEF\u007F+-*/€æŧðłþ"), "123abcDEF+-*/", 'strip("123\\tabc\\u0007DEF\\u007F+-*/€æŧðłþ") should return "123abcDEF+-*/".'); + testString: assert.equal(strip("Français."), "Franais."); + - text: strip("123\tabc\u0007DEF\u007F+-*/€æŧðłþ") should return "123abcDEF+-*/". + testString: assert.equal(strip("123\tabc\u0007DEF\u007F+-*/€æŧðłþ"), "123abcDEF+-*/"); ```