From 73485119f4080ccdf13586baffc941ed656059a9 Mon Sep 17 00:00:00 2001
From: Carol W <8996597+cazyw@users.noreply.github.com>
Date: Thu, 25 Oct 2018 18:47:48 +1100
Subject: [PATCH] fix: update tests for data structures challenges (#18842)
---
.../data-structures/use-.has-and-.size-on-an-es6-set.arabic.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.arabic.md | 2 +-
.../data-structures/use-.has-and-.size-on-an-es6-set.chinese.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.chinese.md | 2 +-
.../data-structures/use-.has-and-.size-on-an-es6-set.english.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.english.md | 2 +-
.../use-.has-and-.size-on-an-es6-set.portuguese.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.portuguese.md | 2 +-
.../data-structures/use-.has-and-.size-on-an-es6-set.russian.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.russian.md | 2 +-
.../data-structures/use-.has-and-.size-on-an-es6-set.spanish.md | 2 +-
.../use-spread-and-notes-for-es5-set-integration.spanish.md | 2 +-
12 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.arabic.md
index a796cad908..815a01cf3a 100644
--- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.arabic.md
+++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.arabic.md
@@ -18,7 +18,7 @@ undefined
```yml
tests:
- text: ''
- testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.arabic.md
index 5a73a6c42d..3ac2aa5c51 100644
--- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.arabic.md
+++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.arabic.md
@@ -18,7 +18,7 @@ undefined
```yml
tests:
- text: ''
- testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```
diff --git a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.chinese.md b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.chinese.md
index 9fd5f296f5..fc8b68e2e6 100644
--- a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.chinese.md
+++ b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.chinese.md
@@ -18,7 +18,7 @@ localeTitle: 在ES6集上使用.has和.size
```yml
tests:
- text: 'checkSet([4, 5, 6], 3)
应该返回[false,3]'
- testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.chinese.md b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.chinese.md
index 9f08abd66c..659d0f7c68 100644
--- a/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.chinese.md
+++ b/curriculum/challenges/chinese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.chinese.md
@@ -18,7 +18,7 @@ localeTitle: 使用Spread和Notes进行ES5 Set()集成
```yml
tests:
- text: 您的套装已正确退回!
- testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```
diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md
index 23b01941c0..d4493dc5f7 100644
--- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md
+++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.english.md
@@ -26,7 +26,7 @@ In this exercise we will pass an array and a value to the checkSet() function. Y
```yml
tests:
- text: checkSet([4, 5, 6], 3)
should return [ false, 3 ]
- testString: assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, 'checkSet([4, 5, 6], 3)
should return [ false, 3 ]');
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md
index 73fa774d84..e2e7fdc25f 100644
--- a/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md
+++ b/curriculum/challenges/english/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.english.md
@@ -24,7 +24,7 @@ Now you've successfully learned how to use the ES6 Set()
object, go
```yml
tests:
- text: Your Set was returned correctly!
- testString: assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, 'Your Set was returned correctly!');
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```
diff --git a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.portuguese.md b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.portuguese.md
index d97ba4d36e..aa7384e377 100644
--- a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.portuguese.md
+++ b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.portuguese.md
@@ -18,7 +18,7 @@ localeTitle: Use .has e .size em um conjunto ES6
```yml
tests:
- text: 'checkSet([4, 5, 6], 3)
deve retornar [false, 3]'
- testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.portuguese.md b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.portuguese.md
index a0d8df3955..61cb9338e3 100644
--- a/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.portuguese.md
+++ b/curriculum/challenges/portuguese/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.portuguese.md
@@ -18,7 +18,7 @@ localeTitle: Use Spread e Notes para Integração do Conjunto ES5 ()
```yml
tests:
- text: Seu conjunto foi devolvido corretamente!
- testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```
diff --git a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.russian.md b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.russian.md
index f13b5298a9..78f8cc0b01 100644
--- a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.russian.md
+++ b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.russian.md
@@ -18,7 +18,7 @@ localeTitle: Используйте .has и .size в наборе ES6.
```yml
tests:
- text: 'checkSet([4, 5, 6], 3)
должен возвращать [false, 3]'
- testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.russian.md b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.russian.md
index d6b26a882a..ea737d70e8 100644
--- a/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.russian.md
+++ b/curriculum/challenges/russian/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.russian.md
@@ -18,7 +18,7 @@ localeTitle: Использование Spread и Notes для интеграц
```yml
tests:
- text: Ваш набор был возвращен правильно!
- testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```
diff --git a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.spanish.md b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.spanish.md
index 2ef42cc8ff..08d2ab3148 100644
--- a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.spanish.md
+++ b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-.has-and-.size-on-an-es6-set.spanish.md
@@ -18,7 +18,7 @@ localeTitle: Utilice .has y .size en un conjunto ES6
```yml
tests:
- text: 'checkSet([4, 5, 6], 3)
debe devolver [false, 3]'
- testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
+ testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "checkSet([4, 5, 6], 3)
should return [ false, 3 ]");'
```
diff --git a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.spanish.md b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.spanish.md
index 75424cee3e..def5eb3af6 100644
--- a/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.spanish.md
+++ b/curriculum/challenges/spanish/08-coding-interview-prep/data-structures/use-spread-and-notes-for-es5-set-integration.spanish.md
@@ -18,7 +18,7 @@ localeTitle: Use Spread and Notes para la integración de ES5 Set ()
```yml
tests:
- text: ¡Tu Set fue devuelto correctamente!
- testString: 'assert(function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]}, "Your Set was returned correctly!");'
+ testString: 'assert((function(){var test = checkSet(new Set([1,2,3,4,5,6,7])); test === [ 1, 2, 3, 4, 5, 6, 7 ]})(), "Your Set was returned correctly!");'
```