Skip to content

Commit 041e6f3

Browse files
committed
Sync custom-set tests
1 parent 964fa4e commit 041e6f3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

exercises/practice/custom-set/.meta/tests.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ description = "Difference (or Complement) of a set is a set of all elements that
114114
[c5ac673e-d707-4db5-8d69-7082c3a5437e]
115115
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference of two non-empty sets is a set of elements that are only in the first set"
116116

117+
[20d0a38f-7bb7-4c4a-ac15-90c7392ecf2b]
118+
description = "Difference (or Complement) of a set is a set of all elements that are only in the first set -> difference removes all duplicates in the first set"
119+
117120
[c45aed16-5494-455a-9033-5d4c93589dc6]
118121
description = "Union returns a set of all elements in either set -> union of empty sets is an empty set"
119122

exercises/practice/custom-set/custom_set.vader

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ Execute (difference of two non-empty sets is a set of elements that are only in
184184
let g:expected = Set([1, 3])
185185
AssertEqual g:expected, g:set1.Difference(g:set2)
186186

187+
Execute (difference removes all duplicates in the first set):
188+
let g:set1 = Set([1, 1])
189+
let g:set2 = Set([1])
190+
let g:expected = Set([])
191+
AssertEqual g:expected, g:set1.Difference(g:set2)
192+
187193
Execute (union of empty sets is an empty set):
188194
let g:set1 = Set([])
189195
let g:set2 = Set([])

0 commit comments

Comments
 (0)