Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiRegiani committed May 4, 2018
1 parent fc96c5a commit ef9a5ea
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import inim

doAssert(getNimVersion()[0..2] == "Nim")

doAssert(triggerIndentation("var") == true)
doAssert(triggerIndentation("var x:int") == false)
doAssert(triggerIndentation("var x:int = 10") == false)
doAssert(triggerIndentation("let") == true)
doAssert(triggerIndentation("const") == true)
doAssert(triggerIndentation("if foo == 1: ") == true)
doAssert(triggerIndentation("proc fooBar(a, b: string): int = ") == true)
doAssert(triggerIndentation("for i in 0..10:") == true)
doAssert(triggerIndentation("for i in 0..10") == false)
doAssert(hasIndentationTrigger("var") == true)
doAssert(hasIndentationTrigger("var x:int") == false)
doAssert(hasIndentationTrigger("var x:int = 10") == false)
doAssert(hasIndentationTrigger("let") == true)
doAssert(hasIndentationTrigger("const") == true)
doAssert(hasIndentationTrigger("if foo == 1: ") == true)
doAssert(hasIndentationTrigger("proc fooBar(a, b: string): int = ") == true)
doAssert(hasIndentationTrigger("for i in 0..10:") == true)
doAssert(hasIndentationTrigger("for i in 0..10") == false)

0 comments on commit ef9a5ea

Please sign in to comment.