summary refs log tree commit diff stats
path: root/tests/seq/tseqcon.nim
diff options
context:
space:
mode:
authorMiran <narimiran@users.noreply.github.com>2018-10-16 10:50:10 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-16 10:50:10 +0200
commit749dbce4c69224f5464908d8f714291f17aa60fa (patch)
treecc91326ef536f15d8d9aa97efab4fc8473d093c7 /tests/seq/tseqcon.nim
parentf04c93b5dd1ee5e185f6849ad8116d08a687026d (diff)
downloadNim-749dbce4c69224f5464908d8f714291f17aa60fa.tar.gz
Merge tests into a larger file (part 5 of ∞) (#9368)
* merge magics

* merge metatype tests

* merge method tests

* merge objects tests

* change `import future` to `import sugar`

Nim in Action tests are left with `import future`, to ensure compatibility.

* merge overload tests

* merge proc tests

* merge procvar tests

* merge range tests

* merge seq tests

* merge sets tests

* remove wrong assert from `tsets3`

* fix `jsTests`

* better fix
Diffstat (limited to 'tests/seq/tseqcon.nim')
-rw-r--r--tests/seq/tseqcon.nim51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/seq/tseqcon.nim b/tests/seq/tseqcon.nim
deleted file mode 100644
index 902ac3485..000000000
--- a/tests/seq/tseqcon.nim
+++ /dev/null
@@ -1,51 +0,0 @@
-discard """
-  file: "tseqcon.nim"
-  output: "Hithere, what\'s your name?Hathere, what\'s your name?"
-"""
-# Test the add proc for sequences and strings
-
-const
-  nestedFixed = true
-
-type
-  TRec {.final.} = object
-    x, y: int
-    s: string
-    seq: seq[string]
-  TRecSeq = seq[TRec]
-
-proc test() =
-  var s, b: seq[string]
-  s = @[]
-  add(s, "Hi")
-  add(s, "there, ")
-  add(s, "what's your name?")
-
-  b = s # deep copying here!
-  b[0][1] = 'a'
-
-  for i in 0 .. len(s)-1:
-    write(stdout, s[i])
-  for i in 0 .. len(b)-1:
-    write(stdout, b[i])
-
-
-when nestedFixed:
-  proc nested() =
-    var
-      s: seq[seq[string]]
-    for i in 0..10_000: # test if the garbage collector
-      # now works with sequences
-      s = @[
-        @["A", "B", "C", "D"],
-        @["E", "F", "G", "H"],
-        @["I", "J", "K", "L"],
-        @["M", "N", "O", "P"]]
-
-test()
-when nestedFixed:
-  nested()
-
-#OUT Hithere, what's your name?Hathere, what's your name?
-
-