From 39b3572256714dbcc63e02bc486688e2794ac351 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Thu, 9 May 2024 23:15:17 +0200 Subject: [PATCH 1/2] custom-set: add test for removing duplicates --- 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 b22a38f44a..21a5910477 100644 --- a/exercises/custom-set/canonical-data.json +++ b/exercises/custom-set/canonical-data.json @@ -396,6 +396,16 @@ "set2": [2, 4] }, "expected": [1, 3] + }, + { + "uuid": "20d0a38f-7bb7-4c4a-ac15-90c7392ecf2b", + "description": "difference removes all duplicates in the first set", + "property": "difference", + "input": { + "set1": [1, 1], + "set2": [1] + }, + "expected": [0] } ] }, From 9da56b749f790f329e261dbc61c4fd2ffe5fda29 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Fri, 10 May 2024 08:40:37 +0200 Subject: [PATCH 2/2] fix oopsie --- exercises/custom-set/canonical-data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/custom-set/canonical-data.json b/exercises/custom-set/canonical-data.json index 21a5910477..934e5bc2e1 100644 --- a/exercises/custom-set/canonical-data.json +++ b/exercises/custom-set/canonical-data.json @@ -405,7 +405,7 @@ "set1": [1, 1], "set2": [1] }, - "expected": [0] + "expected": [] } ] },