From 988eafc342c42defd78d1fc87b80d8586bc01ac4 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sun, 24 Sep 2023 13:50:46 +0200 Subject: [PATCH] [custom-set] Add test for deduplication (#2324) --- exercises/custom-set/canonical-data.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exercises/custom-set/canonical-data.json b/exercises/custom-set/canonical-data.json index 827eab57f8..b22a38f44a 100644 --- a/exercises/custom-set/canonical-data.json +++ b/exercises/custom-set/canonical-data.json @@ -251,6 +251,16 @@ "set2": [1, 2, 3, 4] }, "expected": false + }, + { + "uuid": "d4a1142f-09aa-4df9-8b83-4437dcf7ec24", + "description": "set is equal to a set constructed from an array with duplicates", + "property": "equal", + "input": { + "set1": [1], + "set2": [1, 1] + }, + "expected": true } ] },