active windows tests and use doAssert (#16395)

This commit is contained in:
flywind 2020-12-18 09:45:51 -06:00 • committed by GitHub
commit 0b7847ba3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,6 @@ I
AM AM
GROOT GROOT
''' '''
disabled: "windows"
""" """
@ -64,14 +63,14 @@ echo buffer
block: block:
var ss = newStringStream("The quick brown fox jumped over the lazy dog.\nThe lazy dog ran") var ss = newStringStream("The quick brown fox jumped over the lazy dog.\nThe lazy dog ran")
assert(ss.getPosition == 0) doAssert(ss.getPosition == 0)
assert(ss.peekStr(5) == "The q") doAssert(ss.peekStr(5) == "The q")
assert(ss.getPosition == 0) # haven't moved doAssert(ss.getPosition == 0) # haven't moved
assert(ss.readStr(5) == "The q") doAssert(ss.readStr(5) == "The q")
assert(ss.getPosition == 5) # did move doAssert(ss.getPosition == 5) # did move
assert(ss.peekLine() == "uick brown fox jumped over the lazy dog.") doAssert(ss.peekLine() == "uick brown fox jumped over the lazy dog.")
assert(ss.getPosition == 5) # haven't moved doAssert(ss.getPosition == 5) # haven't moved
var str = newString(100) var str = newString(100)
assert(ss.peekLine(str)) doAssert(ss.peekLine(str))
assert(str == "uick brown fox jumped over the lazy dog.") doAssert(str == "uick brown fox jumped over the lazy dog.")
assert(ss.getPosition == 5) # haven't moved doAssert(ss.getPosition == 5) # haven't moved