Skip to content

Commit

Permalink
-0 should be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Thakore committed Feb 13, 2013
1 parent e7b5126 commit fc2bb4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/scala/org/moe/parser/IntLiteralTestSuite.scala
Expand Up @@ -16,6 +16,12 @@ class IntLiteralTestSuite extends FunSuite with BeforeAndAfter with ParserTestUt
result.asInstanceOf[MoeIntObject].getNativeValue should equal (0)
}

test("... basic test with an -0 int") {
val result = interpretCode("-0")
result.asInstanceOf[MoeIntObject].getNativeValue should equal (0)
}


test("... basic test with an int") {
val result = interpretCode("123")
result.asInstanceOf[MoeIntObject].getNativeValue should equal (123)
Expand Down

0 comments on commit fc2bb4d

Please sign in to comment.