fix: update tests for data structures challenges (#18842)

This commit is contained in:
Carol W
2018-10-25 18:47:48 +11:00
committed by mrugesh mohapatra
parent 9e20cfa0ec
commit 73485119f4
12 changed files with 12 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ localeTitle: Используйте .has и .size в наборе ES6.
```yml
tests:
- text: '<code>checkSet([4, 5, 6], 3)</code> должен возвращать [false, 3]'
testString: 'assert(function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]}, "<code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ]");'
testString: 'assert((function(){var test = checkSet([4,5,6], 3); test === [ false, 3 ]})(), "<code>checkSet([4, 5, 6], 3)</code> should return [ false, 3 ]");'
```

View File

@@ -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!");'
```