From 39b3572256714dbcc63e02bc486688e2794ac351 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Thu, 9 May 2024 23:15:17 +0200 Subject: [PATCH] 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] } ] },