From 0251f68aaf8ef7e525a6434393d1ac9875af419d Mon Sep 17 00:00:00 2001 From: Carol W <8996597+cazyw@users.noreply.github.com> Date: Wed, 7 Nov 2018 23:13:58 +1100 Subject: [PATCH] fix: update tests for create and add to sets challenge (#18838) --- .../data-structures/create-and-add-to-sets-in-es6.arabic.md | 2 +- .../data-structures/create-and-add-to-sets-in-es6.chinese.md | 2 +- .../data-structures/create-and-add-to-sets-in-es6.english.md | 4 ++-- .../create-and-add-to-sets-in-es6.portuguese.md | 2 +- .../data-structures/create-and-add-to-sets-in-es6.russian.md | 2 +- .../data-structures/create-and-add-to-sets-in-es6.spanish.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.arabic.md index 5f3555b383..dc22f69804 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.arabic.md @@ -18,7 +18,7 @@ undefined ```yml tests: - text: '' - testString: 'assert(function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");}, "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ``` diff --git a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.chinese.md b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.chinese.md index 7b463841e0..7f6653ac65 100644 --- a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.chinese.md +++ b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.chinese.md @@ -18,7 +18,7 @@ localeTitle: 在ES6中创建和添加集 ```yml tests: - text: '您的Set应该只包含值1, 2, 3, Taco, Cat, Awesome 。' - testString: 'assert(function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");}, "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ``` diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.english.md index d88fa10d5b..fb644f32ec 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.english.md @@ -29,8 +29,8 @@ For this exercise, return a set with the following values: 1, 2, 3, 'Taco' ```yml tests: - - text: Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome. - testString: assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has('Taco') && test.has('Cat') && test.has('Awesome');})(), 'Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.'); + - text: 'Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ``` diff --git a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.portuguese.md b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.portuguese.md index eb2bf0695b..c4fd946f5d 100644 --- a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.portuguese.md +++ b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.portuguese.md @@ -18,7 +18,7 @@ undefined ```yml tests: - text: 'Seu Set deve conter apenas os valores 1, 2, 3, Taco, Cat, Awesome .' - testString: 'assert(function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");}, "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ``` diff --git a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.russian.md b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.russian.md index 0fb0470ea6..0202f58c7a 100644 --- a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.russian.md +++ b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.russian.md @@ -18,7 +18,7 @@ localeTitle: Создание и добавление к наборам в ES6 ```yml tests: - text: 'Ваш Set должен содержать только значения 1, 2, 3, Taco, Cat, Awesome .' - testString: 'assert(function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");}, "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ``` diff --git a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.spanish.md b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.spanish.md index 01701c87e4..7b8871315f 100644 --- a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.spanish.md +++ b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/create-and-add-to-sets-in-es6.spanish.md @@ -18,7 +18,7 @@ localeTitle: Crear y agregar a conjuntos en ES6 ```yml tests: - text: 'Su Set solo debe contener los valores 1, 2, 3, Taco, Cat, Awesome .' - testString: 'assert(function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");}, "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' + testString: 'assert((function(){var test = checkSet(); return (test.size == 6) && test.has(1) && test.has(2) && test.has(3) && test.has("Taco") && test.has("Cat") && test.has("Awesome");})(), "Your Set should only contain the values 1, 2, 3, Taco, Cat, Awesome.");' ```