From 75293e649d064b133123a5ba3548d0acfd8a1be5 Mon Sep 17 00:00:00 2001 From: Guayo Mena Date: Wed, 10 Apr 2019 16:25:05 +0100 Subject: [PATCH] fix(curriculum): Fix test in Javascript challenge (#35795) Fixes #35793 I rearranged the variables in one of the tests. I just changed the english file. Should I change the rest of the languages as well? Note: I did this change through github's API, because I couldn't run the project locally so I haven't actually tested it. --- ...eck-for-the-presence-of-an-element-with-indexof.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md index 2590343dc0..93db60ddef 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md @@ -23,8 +23,8 @@ For example: tests: - text: quickCheck(["squash", "onions", "shallots"], "mushrooms") should return false testString: assert.strictEqual(quickCheck(['squash', 'onions', 'shallots'], 'mushrooms'), false, 'quickCheck(["squash", "onions", "shallots"], "mushrooms") should return false'); - - text: quickCheck(["squash", "onions", "shallots"], "onions") should return true - testString: assert.strictEqual(quickCheck(['squash', 'onions', 'shallots'], 'onions'), true, 'quickCheck(["squash", "onions", "shallots"], "onions") should return true'); + - text: quickCheck(["onions", "squash", "shallots"], "onions") should return true + testString: assert.strictEqual(quickCheck(['onions', 'squash', 'shallots'], 'onions'), true, 'quickCheck(["onions", "squash", "shallots"], "onions") should return true'); - text: quickCheck([3, 5, 9, 125, 45, 2], 125) should return true testString: assert.strictEqual(quickCheck([3, 5, 9, 125, 45, 2], 125), true, 'quickCheck([3, 5, 9, 125, 45, 2], 125) should return true'); - text: quickCheck([true, false, false], undefined) should return false