summaryrefslogtreecommitdiff
path: root/files/practicum/ZFRemoveAtTest.icl
diff options
context:
space:
mode:
authorMart Lubbers2015-02-06 08:39:37 +0100
committerMart Lubbers2015-02-06 08:39:37 +0100
commit379b6353396ca2401241d714733d570629835ffe (patch)
tree26652c854a79c627b5f50bc8ac26f9b84f8e196d /files/practicum/ZFRemoveAtTest.icl
parentMerge branch 'master' of https://github.com/dopefishh/fp1 (diff)
added practicum files, updated gitignore
Diffstat (limited to 'files/practicum/ZFRemoveAtTest.icl')
-rw-r--r--files/practicum/ZFRemoveAtTest.icl23
1 files changed, 23 insertions, 0 deletions
diff --git a/files/practicum/ZFRemoveAtTest.icl b/files/practicum/ZFRemoveAtTest.icl
new file mode 100644
index 0000000..1eca25d
--- /dev/null
+++ b/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))