fix: update tests for difference on two sets (#34664)

* fix: update tests for difference on two sets

* fix: update tests for difference on two sets - fix quotes

* fix: reverted testString and reworded text
pull/31205/head^2
Carol W 2019-03-22 21:40:06 +11:00 committed by Oliver Eyton-Williams
parent af9a3468aa
commit 6d43682397
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ For example, if <code>setA = ['a','b','c']</code> and <code>setB = ['a','b','d',
```yml
tests:
- text: Your <code>Set</code> class should have a <code>difference</code> method.
testString: assert((function(){var test = new Set(); return (typeof test.difference === 'function')})(), 'Your <code>Set</code> class should have a <code>difference</code> method.');
- text: The proper collection was returned
testString: assert((function(){var setA = new Set(); var setB = new Set(); setA.add('a'); setA.add('b'); setA.add('c'); setB.add('c'); setB.add('d'); var differenceSetAB = setA.difference(setB); return (differenceSetAB.size() === 2) && DeepEqual(differenceSetAB.values(), [ 'a', 'b' ])})(), 'The proper collection was returned');
testString: assert((function(){var test = new Set(); return (typeof test.difference === 'function')})());
- text: Your <code>difference</code> method should return the proper collection.
testString: assert((function(){var setA = new Set(); var setB = new Set(); setA.add('a'); setA.add('b'); setA.add('c'); setB.add('c'); setB.add('d'); var differenceSetAB = setA.difference(setB); return (differenceSetAB.size() === 2) && DeepEqual(differenceSetAB.values(), [ 'a', 'b' ])})());
```