From a7d7542dc646a5fd124ef71e71ce260889f1701b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 2 Feb 2016 19:24:50 +0100 Subject: Moved to 1415 directory --- 1415/files/practicum/ZFRemoveAtTest.icl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 1415/files/practicum/ZFRemoveAtTest.icl (limited to '1415/files/practicum/ZFRemoveAtTest.icl') diff --git a/1415/files/practicum/ZFRemoveAtTest.icl b/1415/files/practicum/ZFRemoveAtTest.icl new file mode 100644 index 0000000..1eca25d --- /dev/null +++ b/1415/files/practicum/ZFRemoveAtTest.icl @@ -0,0 +1,23 @@ +module ZFRemoveAtTest + +/* Test module ZFRemoveAt + Voor werken met Gast: + (*) gebruik Environment 'Gast' + (*) zet Project Options op 'Basic Values Only' +*/ +import gast +import ZFRemoveAt + +Start + = testn 1000 + (\m n -> + let l = [1 .. (n>>20)] in + identiek_aan_removeAt m l /\ + True + ) + +identiek_aan_removeAt :: Int [Int] -> Property +identiek_aan_removeAt m l = name "identiek aan removeAt" + (removeAt m l == removeAt2 m l) + /\ + (ForEach [1..length l] (\i -> removeAt i l == removeAt2 i l)) -- cgit v1.2.3