summary refs log tree commit diff stats
path: root/tests/stdlib/tmemslices.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tmemslices.nim')
-rw-r--r--tests/stdlib/tmemslices.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/stdlib/tmemslices.nim b/tests/stdlib/tmemslices.nim
new file mode 100644
index 000000000..c0d6d3960
--- /dev/null
+++ b/tests/stdlib/tmemslices.nim
@@ -0,0 +1,12 @@
+discard """
+outputsub: "rlwuiadtrnzb"
+"""
+
+# chatever the sub pattern it will find itself
+
+import memfiles
+var inp = memfiles.open("tests/stdlib/tmemslices.nim")
+for mem in memSlices(inp):
+  if mem.size > 3:
+    echo("#" & $mem & "#")
+close(inp)