summary refs log tree commit diff stats
path: root/tests/stdlib/tpermutations.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tpermutations.nim')
-rw-r--r--tests/stdlib/tpermutations.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/stdlib/tpermutations.nim b/tests/stdlib/tpermutations.nim
deleted file mode 100644
index a6e07ded6..000000000
--- a/tests/stdlib/tpermutations.nim
+++ /dev/null
@@ -1,19 +0,0 @@
-discard """
-  output: '''@[0, 2, 1]
-@[1, 0, 2]
-@[1, 2, 0]
-@[2, 0, 1]
-@[2, 1, 0]
-@[2, 0, 1]
-@[1, 2, 0]
-@[1, 0, 2]
-@[0, 2, 1]
-@[0, 1, 2]'''
-"""
-import algorithm
-
-var v = @[0, 1, 2]
-while v.nextPermutation():
-  echo v
-while v.prevPermutation():
-  echo v