summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-12-18 09:45:51 -0600
committerGitHub <noreply@github.com>2020-12-18 16:45:51 +0100
commit0b7847ba3cbbc2baaeeedf6bbe66823079686662 (patch)
treed0a7ba7f99e1f80dcc46023900cd02c89c93e116 /tests
parent78acf1becb20a26637d0ac03bd8fcc6296aaa0f8 (diff)
downloadNim-0b7847ba3cbbc2baaeeedf6bbe66823079686662.tar.gz
active windows tests and use doAssert (#16395)
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tstreams.nim21
1 files changed, 10 insertions, 11 deletions
diff --git a/tests/stdlib/tstreams.nim b/tests/stdlib/tstreams.nim
index e0310b5f5..c2ceed624 100644
--- a/tests/stdlib/tstreams.nim
+++ b/tests/stdlib/tstreams.nim
@@ -12,7 +12,6 @@ I
 AM
 GROOT
 '''
-disabled: "windows"
 """
 
 
@@ -64,14 +63,14 @@ echo buffer
 
 block:
   var ss = newStringStream("The quick brown fox jumped over the lazy dog.\nThe lazy dog ran")
-  assert(ss.getPosition == 0)
-  assert(ss.peekStr(5) == "The q")
-  assert(ss.getPosition == 0) # haven't moved
-  assert(ss.readStr(5) == "The q")
-  assert(ss.getPosition == 5) # did move
-  assert(ss.peekLine() == "uick brown fox jumped over the lazy dog.")
-  assert(ss.getPosition == 5) # haven't moved
+  doAssert(ss.getPosition == 0)
+  doAssert(ss.peekStr(5) == "The q")
+  doAssert(ss.getPosition == 0) # haven't moved
+  doAssert(ss.readStr(5) == "The q")
+  doAssert(ss.getPosition == 5) # did move
+  doAssert(ss.peekLine() == "uick brown fox jumped over the lazy dog.")
+  doAssert(ss.getPosition == 5) # haven't moved
   var str = newString(100)
-  assert(ss.peekLine(str))
-  assert(str == "uick brown fox jumped over the lazy dog.")
-  assert(ss.getPosition == 5) # haven't moved
+  doAssert(ss.peekLine(str))
+  doAssert(str == "uick brown fox jumped over the lazy dog.")
+  doAssert(ss.getPosition == 5) # haven't moved