From ac1ea780fcc58aa4170e488269ebaca5b78fdec2 Mon Sep 17 00:00:00 2001 From: Bouncey Date: Mon, 8 Oct 2018 12:52:10 +0100 Subject: [PATCH] fix(challenge-md): Fix formatting errors --- ...the-s-tag-to-strikethrough-text.english.md | 2 +- ...tibility-with-browser-fallbacks.english.md | 2 +- .../anonymous-message-board.english.md | 24 ++++++++--------- .../issue-tracker.english.md | 16 ++++++------ .../metric-imperial-converter.english.md | 26 +++++++++---------- .../personal-library.english.md | 20 +++++++------- .../stock-price-checker.english.md | 14 +++++----- .../gaussian-elimination.english.md | 14 +++++----- .../rosetta-code/general-fizzbuzz.english.md | 18 ++++++------- ...erate-lower-case-ascii-alphabet.english.md | 4 +-- .../generatorexponential.english.md | 14 +++++----- .../rosetta-code/gray-code.english.md | 16 ++++++------ .../greatest-common-divisor.english.md | 16 ++++++------ .../greatest-subsequential-sum.english.md | 16 ++++++------ .../i-before-e-except-after-c.english.md | 16 ++++++------ .../rosetta-code/iban.english.md | 14 +++++----- .../rosetta-code/identity-matrix.english.md | 12 ++++----- .../iterated-digits-squaring.english.md | 16 ++++++------ .../rosetta-code/jaro-distance.english.md | 14 +++++----- .../rosetta-code/jortsort.english.md | 16 ++++++------ .../rosetta-code/josephus-problem.english.md | 14 +++++----- 21 files changed, 152 insertions(+), 152 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text.english.md index d8d7ba66fd..f5383ef283 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text.english.md @@ -2,7 +2,7 @@ id: 587d781b367417b2b2512aba title: Use the s Tag to Strikethrough Text challengeType: 0 -videoUrl: " +videoUrl: '' --- ## Description diff --git a/curriculum/challenges/english/01-responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks.english.md b/curriculum/challenges/english/01-responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks.english.md index 64669aece6..a90e254f7c 100644 --- a/curriculum/challenges/english/01-responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks.english.md @@ -2,7 +2,7 @@ id: 5b7d72c338cd7e35b63f3e14 title: Improve Compatibility with Browser Fallbacks challengeType: 0 -videoUrl: " +videoUrl: '' --- ## Description diff --git a/curriculum/challenges/english/06-information-security-and-quality-assurance/information-security-and-quality-assurance-projects/anonymous-message-board.english.md b/curriculum/challenges/english/06-information-security-and-quality-assurance/information-security-and-quality-assurance-projects/anonymous-message-board.english.md index 96c63bdb96..749556b737 100644 --- a/curriculum/challenges/english/06-information-security-and-quality-assurance/information-security-and-quality-assurance-projects/anonymous-message-board.english.md +++ b/curriculum/challenges/english/06-information-security-and-quality-assurance/information-security-and-quality-assurance-projects/anonymous-message-board.english.md @@ -23,29 +23,29 @@ Start this project on Glitch using gaussianElimination should be a function."' + - text: gaussianElimination should be a function. testString: 'assert(typeof gaussianElimination=="function","gaussianElimination should be a function.");' - - text: "'gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return an array."' + - text: gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return an array. testString: 'assert(Array.isArray(gaussianElimination(tests[0][0],tests[0][1])),"gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return an array.");' - - text: "'gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return "+JSON.stringify(results[0])+"."' + - text: gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return "+JSON.stringify(results[0])+". testString: 'assert.deepEqual(gaussianElimination(tests[0][0],tests[0][1]),results[0],"gaussianElimination("+JSON.stringify(tests[0][0])+","+JSON.stringify(tests[0][1])+") should return "+JSON.stringify(results[0])+".");' - - text: "'gaussianElimination("+JSON.stringify(tests[1][0])+","+JSON.stringify(tests[1][1])+") should return "+JSON.stringify(results[1])+"."' + - text: gaussianElimination("+JSON.stringify(tests[1][0])+","+JSON.stringify(tests[1][1])+") should return "+JSON.stringify(results[1])+". testString: 'assert.deepEqual(gaussianElimination(tests[1][0],tests[1][1]),results[1],"gaussianElimination("+JSON.stringify(tests[1][0])+","+JSON.stringify(tests[1][1])+") should return "+JSON.stringify(results[1])+".");' - - text: "'gaussianElimination("+JSON.stringify(tests[2][0])+","+JSON.stringify(tests[2][1])+") should return "+JSON.stringify(results[2])+"."' + - text: gaussianElimination("+JSON.stringify(tests[2][0])+","+JSON.stringify(tests[2][1])+") should return "+JSON.stringify(results[2])+". testString: 'assert.deepEqual(gaussianElimination(tests[2][0],tests[2][1]),results[2],"gaussianElimination("+JSON.stringify(tests[2][0])+","+JSON.stringify(tests[2][1])+") should return "+JSON.stringify(results[2])+".");' - - text: "'gaussianElimination("+JSON.stringify(tests[3][0])+","+JSON.stringify(tests[3][1])+") should return "+JSON.stringify(results[3])+"."' + - text: gaussianElimination("+JSON.stringify(tests[3][0])+","+JSON.stringify(tests[3][1])+") should return "+JSON.stringify(results[3])+". testString: 'assert.deepEqual(gaussianElimination(tests[3][0],tests[3][1]),results[3],"gaussianElimination("+JSON.stringify(tests[3][0])+","+JSON.stringify(tests[3][1])+") should return "+JSON.stringify(results[3])+".");' - - text: "'gaussianElimination("+JSON.stringify(tests[4][0])+","+JSON.stringify(tests[4][1])+") should return "+JSON.stringify(results[4])+"."' + - text: gaussianElimination("+JSON.stringify(tests[4][0])+","+JSON.stringify(tests[4][1])+") should return "+JSON.stringify(results[4])+". testString: 'assert.deepEqual(gaussianElimination(tests[4][0],tests[4][1]),results[4],"gaussianElimination("+JSON.stringify(tests[4][0])+","+JSON.stringify(tests[4][1])+") should return "+JSON.stringify(results[4])+".");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/general-fizzbuzz.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/general-fizzbuzz.english.md index 7c969db7d3..041891e856 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/general-fizzbuzz.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/general-fizzbuzz.english.md @@ -23,23 +23,23 @@ The second parameter is the number for which the function should return a string ```yml tests: - - text: "'genFizzBuzz should be a function."' + - text: genFizzBuzz should be a function. testString: 'assert(typeof genFizzBuzz=="function","genFizzBuzz should be a function.");' - - text: "'genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return a type."' + - text: genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return a type. testString: 'assert(typeof genFizzBuzz(tests[0][0],tests[0][1])=="string","genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return a type.");' - - text: "'genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return ""+results[0]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return ""+results[0]+"". testString: 'assert.equal(genFizzBuzz(tests[0][0],tests[0][1]),results[0],"genFizzBuzz("+JSON.stringify(tests[0][0])+","+tests[0][1]+") should return ""+results[0]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[1][0])+","+tests[1][1]+") should return ""+results[1]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[1][0])+","+tests[1][1]+") should return ""+results[1]+"". testString: 'assert.equal(genFizzBuzz(tests[1][0],tests[1][1]),results[1],"genFizzBuzz("+JSON.stringify(tests[1][0])+","+tests[1][1]+") should return ""+results[1]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[2][0])+","+tests[2][1]+") should return ""+results[2]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[2][0])+","+tests[2][1]+") should return ""+results[2]+"". testString: 'assert.equal(genFizzBuzz(tests[2][0],tests[2][1]),results[2],"genFizzBuzz("+JSON.stringify(tests[2][0])+","+tests[2][1]+") should return ""+results[2]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[3][0])+","+tests[3][1]+") should return ""+results[3]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[3][0])+","+tests[3][1]+") should return ""+results[3]+"". testString: 'assert.equal(genFizzBuzz(tests[3][0],tests[3][1]),results[3],"genFizzBuzz("+JSON.stringify(tests[3][0])+","+tests[3][1]+") should return ""+results[3]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[4][0])+","+tests[4][1]+") should return ""+results[4]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[4][0])+","+tests[4][1]+") should return ""+results[4]+"". testString: 'assert.equal(genFizzBuzz(tests[4][0],tests[4][1]),results[4],"genFizzBuzz("+JSON.stringify(tests[4][0])+","+tests[4][1]+") should return ""+results[4]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[5][0])+","+tests[5][1]+") should return ""+results[5]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[5][0])+","+tests[5][1]+") should return ""+results[5]+"". testString: 'assert.equal(genFizzBuzz(tests[5][0],tests[5][1]),results[5],"genFizzBuzz("+JSON.stringify(tests[5][0])+","+tests[5][1]+") should return ""+results[5]+"".");' - - text: "'genFizzBuzz("+JSON.stringify(tests[6][0])+","+tests[6][1]+") should return ""+results[6]+""."' + - text: genFizzBuzz("+JSON.stringify(tests[6][0])+","+tests[6][1]+") should return ""+results[6]+"". testString: 'assert.equal(genFizzBuzz(tests[6][0],tests[6][1]),results[6],"genFizzBuzz("+JSON.stringify(tests[6][0])+","+tests[6][1]+") should return ""+results[6]+"".");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generate-lower-case-ascii-alphabet.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generate-lower-case-ascii-alphabet.english.md index 128a1c0772..13448e3698 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generate-lower-case-ascii-alphabet.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generate-lower-case-ascii-alphabet.english.md @@ -19,9 +19,9 @@ Write a function to generate an array of lower case ASCII characters, for a give ```yml tests: - - text: "'lascii should be a function."' + - text: lascii should be a function. testString: 'assert(typeof lascii=="function","lascii should be a function.");' - - text: "'lascii("a","d") should return an array."' + - text: lascii("a","d") should return an array. testString: 'assert(Array.isArray(lascii("a","d")),"lascii("a","d") should return an array.");' - text: '"lascii("a","d") should return [ "a", "b", "c", "d" ]."' testString: 'assert.deepEqual(lascii("a","d"),results[0],"lascii("a","d") should return [ "a", "b", "c", "d" ].");' diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generatorexponential.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generatorexponential.english.md index 11b10c2152..76c3bbec88 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generatorexponential.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/generatorexponential.english.md @@ -24,19 +24,19 @@ For example for \(n=7\), the function should return 81 as the sequence would be ```yml tests: - - text: "'exponentialGenerator should be a function."' + - text: exponentialGenerator should be a function. testString: 'assert(typeof exponentialGenerator=="function","exponentialGenerator should be a function.");' - - text: "'exponentialGenerator() should return a number."' + - text: exponentialGenerator() should return a number. testString: 'assert(typeof exponentialGenerator(10)=="number","exponentialGenerator() should return a number.");' - - text: "'exponentialGenerator(10) should return 144."' + - text: exponentialGenerator(10) should return 144. testString: 'assert.equal(exponentialGenerator(10),144,"exponentialGenerator(10) should return 144.");' - - text: "'exponentialGenerator(12) should return 196."' + - text: exponentialGenerator(12) should return 196. testString: 'assert.equal(exponentialGenerator(12),196,"exponentialGenerator(12) should return 196.");' - - text: "'exponentialGenerator(14) should return 256."' + - text: exponentialGenerator(14) should return 256. testString: 'assert.equal(exponentialGenerator(14),256,"exponentialGenerator(14) should return 256.");' - - text: "'exponentialGenerator(20) should return 484."' + - text: exponentialGenerator(20) should return 484. testString: 'assert.equal(exponentialGenerator(20),484,"exponentialGenerator(20) should return 484.");' - - text: "'exponentialGenerator(25) should return 784."' + - text: exponentialGenerator(25) should return 784. testString: 'assert.equal(exponentialGenerator(25),784,"exponentialGenerator(25) should return 784.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/gray-code.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/gray-code.english.md index 75e9ee6cb3..3449afae22 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/gray-code.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/gray-code.english.md @@ -28,21 +28,21 @@ There are many possible Gray codes. The following encodes what is called "binary ```yml tests: - - text: "'gray should be a function."' + - text: gray should be a function. testString: 'assert(typeof gray=="function","gray should be a function.");' - - text: "'gray(true,177) should return a number."' + - text: gray(true,177) should return a number. testString: 'assert(typeof gray(true,177)=="number","gray(true,177) should return a number.");' - - text: "'gray(true,177) should return 233."' + - text: gray(true,177) should return 233. testString: 'assert.equal(gray(true,177),233,"gray(true,177) should return 233.");' - - text: "'gray(true,425) should return 381."' + - text: gray(true,425) should return 381. testString: 'assert.equal(gray(true,425),381,"gray(true,425) should return 381.");' - - text: "'gray(true,870) should return 725."' + - text: gray(true,870) should return 725. testString: 'assert.equal(gray(true,870),725,"gray(true,870) should return 725.");' - - text: "'gray(false,233) should return 177."' + - text: gray(false,233) should return 177. testString: 'assert.equal(gray(false,233),177,"gray(false,233) should return 177.");' - - text: "'gray(false,381) should return 425."' + - text: gray(false,381) should return 425. testString: 'assert.equal(gray(false,381),425,"gray(false,381) should return 425.");' - - text: "'gray(false,725) should return 870."' + - text: gray(false,725) should return 870. testString: 'assert.equal(gray(false,725),870,"gray(false,725) should return 870.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-common-divisor.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-common-divisor.english.md index c14a938baa..39a8d64de5 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-common-divisor.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-common-divisor.english.md @@ -19,21 +19,21 @@ Write a function that returns the greatest common divisor of two integers. ```yml tests: - - text: "'gcd should be a function."' + - text: gcd should be a function. testString: 'assert(typeof gcd=="function","gcd should be a function.");' - - text: "'gcd(24,36) should return a number."' + - text: gcd(24,36) should return a number. testString: 'assert(typeof gcd(24,36)=="number","gcd(24,36) should return a number.");' - - text: "'gcd(24,36) should return 12."' + - text: gcd(24,36) should return 12. testString: 'assert.equal(gcd(24,36),12,"gcd(24,36) should return 12.");' - - text: "'gcd(30,48) should return 6."' + - text: gcd(30,48) should return 6. testString: 'assert.equal(gcd(30,48),6,"gcd(30,48) should return 6.");' - - text: "'gcd(10,15) should return 5."' + - text: gcd(10,15) should return 5. testString: 'assert.equal(gcd(10,15),5,"gcd(10,15) should return 5.");' - - text: "'gcd(100,25) should return 25."' + - text: gcd(100,25) should return 25. testString: 'assert.equal(gcd(100,25),25,"gcd(100,25) should return 25.");' - - text: "'gcd(13,250) should return 1."' + - text: gcd(13,250) should return 1. testString: 'assert.equal(gcd(13,250),1,"gcd(13,250) should return 1.");' - - text: "'gcd(1300,250) should return 50."' + - text: gcd(1300,250) should return 50. testString: 'assert.equal(gcd(1300,250),50,"gcd(1300,250) should return 50.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-subsequential-sum.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-subsequential-sum.english.md index 4ad32ee033..5b146b50a2 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-subsequential-sum.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/greatest-subsequential-sum.english.md @@ -20,21 +20,21 @@ An empty subsequence is considered to have the sum of \( 0 \); thus if all elem ```yml tests: - - text: "'maximumSubsequence should be a function."' + - text: maximumSubsequence should be a function. testString: 'assert(typeof maximumSubsequence=="function","maximumSubsequence should be a function.");' - - text: "'maximumSubsequence("+JSON.stringify(tests[0])+") should return an array."' + - text: maximumSubsequence("+JSON.stringify(tests[0])+") should return an array. testString: 'assert(Array.isArray(maximumSubsequence(tests[0])),"maximumSubsequence("+JSON.stringify(tests[0])+") should return an array.");' - - text: "'maximumSubsequence("+JSON.stringify(tests[0])+") should return "+JSON.stringify(results[0])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[0])+") should return "+JSON.stringify(results[0])+". testString: 'assert.deepEqual(maximumSubsequence(tests[0]),results[0],"maximumSubsequence("+JSON.stringify(tests[0])+") should return "+JSON.stringify(results[0])+".");' - - text: "'maximumSubsequence("+JSON.stringify(tests[1])+") should return "+JSON.stringify(results[1])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[1])+") should return "+JSON.stringify(results[1])+". testString: 'assert.deepEqual(maximumSubsequence(tests[1]),results[1],"maximumSubsequence("+JSON.stringify(tests[1])+") should return "+JSON.stringify(results[1])+".");' - - text: "'maximumSubsequence("+JSON.stringify(tests[2])+") should return "+JSON.stringify(results[2])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[2])+") should return "+JSON.stringify(results[2])+". testString: 'assert.deepEqual(maximumSubsequence(tests[2]),results[2],"maximumSubsequence("+JSON.stringify(tests[2])+") should return "+JSON.stringify(results[2])+".");' - - text: "'maximumSubsequence("+JSON.stringify(tests[3])+") should return "+JSON.stringify(results[3])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[3])+") should return "+JSON.stringify(results[3])+". testString: 'assert.deepEqual(maximumSubsequence(tests[3]),results[3],"maximumSubsequence("+JSON.stringify(tests[3])+") should return "+JSON.stringify(results[3])+".");' - - text: "'maximumSubsequence("+JSON.stringify(tests[4])+") should return "+JSON.stringify(results[4])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[4])+") should return "+JSON.stringify(results[4])+". testString: 'assert.deepEqual(maximumSubsequence(tests[4]),results[4],"maximumSubsequence("+JSON.stringify(tests[4])+") should return "+JSON.stringify(results[4])+".");' - - text: "'maximumSubsequence("+JSON.stringify(tests[5])+") should return "+JSON.stringify(results[5])+"."' + - text: maximumSubsequence("+JSON.stringify(tests[5])+") should return "+JSON.stringify(results[5])+". testString: 'assert.deepEqual(maximumSubsequence(tests[5]),results[5],"maximumSubsequence("+JSON.stringify(tests[5])+") should return "+JSON.stringify(results[5])+".");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/i-before-e-except-after-c.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/i-before-e-except-after-c.english.md index 90a1ec9fcd..9efa5a5ed8 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/i-before-e-except-after-c.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/i-before-e-except-after-c.english.md @@ -23,21 +23,21 @@ Write a function that accepts a word and check if the word follows this rule. Th ```yml tests: - - text: "'IBeforeExceptC should be a function."' + - text: IBeforeExceptC should be a function. testString: 'assert(typeof IBeforeExceptC=="function","IBeforeExceptC should be a function.");' - - text: "'IBeforeExceptC("receive") should return a boolean."' + - text: IBeforeExceptC("receive") should return a boolean. testString: 'assert(typeof IBeforeExceptC("receive")=="boolean","IBeforeExceptC("receive") should return a boolean.");' - - text: "'IBeforeExceptC("receive") should return true."' + - text: IBeforeExceptC("receive") should return true. testString: 'assert.equal(IBeforeExceptC("receive"),true,"IBeforeExceptC("receive") should return true.");' - - text: "'IBeforeExceptC("science") should return false."' + - text: IBeforeExceptC("science") should return false. testString: 'assert.equal(IBeforeExceptC("science"),false,"IBeforeExceptC("science") should return false.");' - - text: "'IBeforeExceptC("imperceivable") should return true."' + - text: IBeforeExceptC("imperceivable") should return true. testString: 'assert.equal(IBeforeExceptC("imperceivable"),true,"IBeforeExceptC("imperceivable") should return true.");' - - text: "'IBeforeExceptC("inconceivable") should return true."' + - text: IBeforeExceptC("inconceivable") should return true. testString: 'assert.equal(IBeforeExceptC("inconceivable"),true,"IBeforeExceptC("inconceivable") should return true.");' - - text: "'IBeforeExceptC("insufficient") should return false."' + - text: IBeforeExceptC("insufficient") should return false. testString: 'assert.equal(IBeforeExceptC("insufficient"),false,"IBeforeExceptC("insufficient") should return false.");' - - text: "'IBeforeExceptC("omniscient") should return false."' + - text: IBeforeExceptC("omniscient") should return false. testString: 'assert.equal(IBeforeExceptC("omniscient"),false,"IBeforeExceptC("omniscient") should return false.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iban.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iban.english.md index 3fb8308d4a..b2e1d781f6 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iban.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iban.english.md @@ -27,19 +27,19 @@ Write a function that takes IBAN string as parameter. If it is valid return true ```yml tests: - - text: "'isValid should be a function."' + - text: isValid should be a function. testString: 'assert(typeof isValid=="function","isValid should be a function.");' - - text: "'isValid(""+tests[0]+"") should return a boolean."' + - text: isValid(""+tests[0]+"") should return a boolean. testString: 'assert(typeof isValid(tests[0])=="boolean","isValid(""+tests[0]+"") should return a boolean.");' - - text: "'isValid(""+tests[0]+"") should return true."' + - text: isValid(""+tests[0]+"") should return true. testString: 'assert.equal(isValid(tests[0]),true,"isValid(""+tests[0]+"") should return true.");' - - text: "'isValid(""+tests[1]+"") should return false."' + - text: isValid(""+tests[1]+"") should return false. testString: 'assert.equal(isValid(tests[1]),false,"isValid(""+tests[1]+"") should return false.");' - - text: "'isValid(""+tests[2]+"") should return false."' + - text: isValid(""+tests[2]+"") should return false. testString: 'assert.equal(isValid(tests[2]),false,"isValid(""+tests[2]+"") should return false.");' - - text: "'isValid(""+tests[3]+"") should return false."' + - text: isValid(""+tests[3]+"") should return false. testString: 'assert.equal(isValid(tests[3]),false,"isValid(""+tests[3]+"") should return false.");' - - text: "'isValid(""+tests[4]+"") should return true."' + - text: isValid(""+tests[4]+"") should return true. testString: 'assert.equal(isValid(tests[4]),true,"isValid(""+tests[4]+"") should return true.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/identity-matrix.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/identity-matrix.english.md index 3533a489fb..11388bce6d 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/identity-matrix.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/identity-matrix.english.md @@ -23,17 +23,17 @@ Write a function that takes a number 'n' as a parameter and returns the identity ```yml tests: - - text: "'idMatrix should be a function."' + - text: idMatrix should be a function. testString: 'assert(typeof idMatrix=="function","idMatrix should be a function.");' - - text: "'idMatrix(1) should return an array."' + - text: idMatrix(1) should return an array. testString: 'assert(Array.isArray(idMatrix(1)),"idMatrix(1) should return an array.");' - - text: "'idMatrix(1) should return "+JSON.stringify(results[0])+"."' + - text: idMatrix(1) should return "+JSON.stringify(results[0])+". testString: 'assert.deepEqual(idMatrix(1),results[0],"idMatrix(1) should return "+JSON.stringify(results[0])+".");' - - text: "'idMatrix(2) should return "+JSON.stringify(results[1])+"."' + - text: idMatrix(2) should return "+JSON.stringify(results[1])+". testString: 'assert.deepEqual(idMatrix(2),results[1],"idMatrix(2) should return "+JSON.stringify(results[1])+".");' - - text: "'idMatrix(3) should return "+JSON.stringify(results[2])+"."' + - text: idMatrix(3) should return "+JSON.stringify(results[2])+". testString: 'assert.deepEqual(idMatrix(3),results[2],"idMatrix(3) should return "+JSON.stringify(results[2])+".");' - - text: "'idMatrix(4) should return "+JSON.stringify(results[3])+"."' + - text: idMatrix(4) should return "+JSON.stringify(results[3])+". testString: 'assert.deepEqual(idMatrix(4),results[3],"idMatrix(4) should return "+JSON.stringify(results[3])+".");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iterated-digits-squaring.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iterated-digits-squaring.english.md index 2642d1bac3..cc569b95be 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iterated-digits-squaring.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/iterated-digits-squaring.english.md @@ -22,21 +22,21 @@ Write a function that takes a number as a parameter and returns 1 or 89 after pe ```yml tests: - - text: "'iteratedSquare should be a function."' + - text: iteratedSquare should be a function. testString: 'assert(typeof iteratedSquare=="function","iteratedSquare should be a function.");' - - text: "'iteratedSquare(4) should return a number."' + - text: iteratedSquare(4) should return a number. testString: 'assert(typeof iteratedSquare(4)=="number","iteratedSquare(4) should return a number.");' - - text: "'iteratedSquare(4) should return 89."' + - text: iteratedSquare(4) should return 89. testString: 'assert.equal(iteratedSquare(4),89,"iteratedSquare(4) should return 89.");' - - text: "'iteratedSquare(7) should return 1."' + - text: iteratedSquare(7) should return 1. testString: 'assert.equal(iteratedSquare(7),1,"iteratedSquare(7) should return 1.");' - - text: "'iteratedSquare(15) should return 89."' + - text: iteratedSquare(15) should return 89. testString: 'assert.equal(iteratedSquare(15),89,"iteratedSquare(15) should return 89.");' - - text: "'iteratedSquare(20) should return 89."' + - text: iteratedSquare(20) should return 89. testString: 'assert.equal(iteratedSquare(20),89,"iteratedSquare(20) should return 89.");' - - text: "'iteratedSquare(70) should return 1."' + - text: iteratedSquare(70) should return 1. testString: 'assert.equal(iteratedSquare(70),1,"iteratedSquare(70) should return 1.");' - - text: "'iteratedSquare(100) should return 1."' + - text: iteratedSquare(100) should return 1. testString: 'assert.equal(iteratedSquare(100),1,"iteratedSquare(100) should return 1.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jaro-distance.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jaro-distance.english.md index e596fa97ea..a47fbc17bf 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jaro-distance.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jaro-distance.english.md @@ -28,19 +28,19 @@ Write a function a that takes two strings as parameters and returns the associat ```yml tests: - - text: "'jaro should be a function."' + - text: jaro should be a function. testString: 'assert(typeof jaro=="function","jaro should be a function.");' - - text: "'jaro(""+tests[0][0]+"",""+tests[0][1]+"") should return a number."' + - text: jaro(""+tests[0][0]+"",""+tests[0][1]+"") should return a number. testString: 'assert(typeof jaro(tests[0][0],tests[0][1])=="number","jaro() should return a number.");' - - text: "'jaro(""+tests[0][0]+"",""+tests[0][1]+"") should return "+results[0]+"."' + - text: jaro(""+tests[0][0]+"",""+tests[0][1]+"") should return "+results[0]+". testString: 'assert.equal(jaro(tests[0][0],tests[0][1]),results[0],"jaro(""+tests[0][0]+"",""+tests[0][1]+"") should return "+results[0]+".");' - - text: "'jaro(""+tests[1][0]+"",""+tests[1][1]+"") should return "+results[1]+"."' + - text: jaro(""+tests[1][0]+"",""+tests[1][1]+"") should return "+results[1]+". testString: 'assert.equal(jaro(tests[1][0],tests[1][1]),results[1],"jaro(""+tests[1][0]+"",""+tests[1][1]+"") should return "+results[1]+".");' - - text: "'jaro(""+tests[2][0]+"",""+tests[2][1]+"") should return "+results[2]+"."' + - text: jaro(""+tests[2][0]+"",""+tests[2][1]+"") should return "+results[2]+". testString: 'assert.equal(jaro(tests[2][0],tests[2][1]),results[2],"jaro(""+tests[2][0]+"",""+tests[2][1]+"") should return "+results[2]+".");' - - text: "'jaro(""+tests[3][0]+"",""+tests[3][1]+"") should return "+results[3]+"."' + - text: jaro(""+tests[3][0]+"",""+tests[3][1]+"") should return "+results[3]+". testString: 'assert.equal(jaro(tests[3][0],tests[3][1]),results[3],"jaro(""+tests[3][0]+"",""+tests[3][1]+"") should return "+results[3]+".");' - - text: "'jaro(""+tests[4][0]+"",""+tests[4][1]+"") should return "+results[4]+"."' + - text: jaro(""+tests[4][0]+"",""+tests[4][1]+"") should return "+results[4]+". testString: 'assert.equal(jaro(tests[4][0],tests[4][1]),results[4],"jaro(""+tests[4][0]+"",""+tests[4][1]+"") should return "+results[4]+".");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jortsort.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jortsort.english.md index 1b23947ca3..129b662bb8 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jortsort.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/jortsort.english.md @@ -20,21 +20,21 @@ jortSort is a function that takes a single array of comparable objects as its ar ```yml tests: - - text: "'jortsort should be a function."' + - text: jortsort should be a function. testString: 'assert(typeof jortsort=="function","jortsort should be a function.");' - - text: "'jortsort("+JSON.stringify(tests[0])+") should return a boolean."' + - text: jortsort("+JSON.stringify(tests[0])+") should return a boolean. testString: 'assert(typeof jortsort(tests[0].slice())=="boolean","jortsort("+JSON.stringify(tests[0])+") should return a boolean.");' - - text: "'jortsort("+JSON.stringify(tests[0])+") should return true."' + - text: jortsort("+JSON.stringify(tests[0])+") should return true. testString: 'assert.equal(jortsort(tests[0].slice()),true,"jortsort("+JSON.stringify(tests[0])+") should return true.");' - - text: "'jortsort("+JSON.stringify(tests[1])+") should return false."' + - text: jortsort("+JSON.stringify(tests[1])+") should return false. testString: 'assert.equal(jortsort(tests[1].slice()),false,"jortsort("+JSON.stringify(tests[1])+") should return false.");' - - text: "'jortsort("+JSON.stringify(tests[2])+") should return false."' + - text: jortsort("+JSON.stringify(tests[2])+") should return false. testString: 'assert.equal(jortsort(tests[2].slice()),false,"jortsort("+JSON.stringify(tests[2])+") should return false.");' - - text: "'jortsort("+JSON.stringify(tests[3])+") should return true."' + - text: jortsort("+JSON.stringify(tests[3])+") should return true. testString: 'assert.equal(jortsort(tests[3].slice()),true,"jortsort("+JSON.stringify(tests[3])+") should return true.");' - - text: "'jortsort("+JSON.stringify(tests[4])+") should return false."' + - text: jortsort("+JSON.stringify(tests[4])+") should return false. testString: 'assert.equal(jortsort(tests[4].slice()),false,"jortsort("+JSON.stringify(tests[4])+") should return false.");' - - text: "'jortsort("+JSON.stringify(tests[5])+") should return true."' + - text: jortsort("+JSON.stringify(tests[5])+") should return true. testString: 'assert.equal(jortsort(tests[5].slice()),true,"jortsort("+JSON.stringify(tests[5])+") should return true.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/josephus-problem.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/josephus-problem.english.md index fdb6740f69..d0c99cfc1f 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/josephus-problem.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/josephus-problem.english.md @@ -27,19 +27,19 @@ Write a function that takes the initial number of prisoners and 'k' as parameter ```yml tests: - - text: "'josephus should be a function."' + - text: josephus should be a function. testString: 'assert(typeof josephus=="function","josephus should be a function.");' - - text: "'josephus(30,3) should return a number."' + - text: josephus(30,3) should return a number. testString: 'assert(typeof josephus(30,3)=="number","josephus(30,3) should return a number.");' - - text: "'josephus(30,3) should return 29."' + - text: josephus(30,3) should return 29. testString: 'assert.equal(josephus(30,3),29,"josephus(30,3) should return 29.");' - - text: "'josephus(30,5) should return 3."' + - text: josephus(30,5) should return 3. testString: 'assert.equal(josephus(30,5),3,"josephus(30,5) should return 3.");' - - text: "'josephus(20,2) should return 9."' + - text: josephus(20,2) should return 9. testString: 'assert.equal(josephus(20,2),9,"josephus(20,2) should return 9.");' - - text: "'josephus(17,6) should return 2."' + - text: josephus(17,6) should return 2. testString: 'assert.equal(josephus(17,6),2,"josephus(17,6) should return 2.");' - - text: "'josephus(29,4) should return 2."' + - text: josephus(29,4) should return 2. testString: 'assert.equal(josephus(29,4),2,"josephus(29,4) should return 2.");' ```