Skip to content

Commit

Permalink
add test for projectVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Nov 3, 2019
1 parent d490322 commit 630e53c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tbump.nim
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,9 @@ suite "bump":
check parseVersion("""version = "123"""").isNone
check parseVersion("""version = "steve"""").isNone
check parseVersion("""version = "v0.3.0"""").isNone

test "find a version at compile-time":
const
version = projectVersion()
check version.isSome
check $(version.get) != "0.0.0"

0 comments on commit 630e53c

Please sign in to comment.