Skip to content

Commit

Permalink
Add test case to ScalaConstTest for long values
Browse files Browse the repository at this point in the history
  • Loading branch information
omrihq committed Oct 5, 2018
1 parent 12d826a commit 91bbc29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class ScalaConstTest {
@Test
def testConstantGeneration(): Unit = {
A.assertEquals(List(1.2, 2.1, 1.1), ConstantineConstants.LISTCONST)
A.assertEquals(10000000000L, ConstantineConstants.LONG)
A.assertEquals(Map("hello" -> "world", "wisconsin" -> "badgers"), ConstantineConstants.MAPCONST)
A.assertTrue(ConstantineConstants.BOOL)
A.assertEquals("hello", ConstantineConstants.SIMPLE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace java io.fsq.spindle.codegen.runtime.constants.test.gen
const string SIMPLE = "hello"
const bool BOOL = true
const double DOUBLE = 3.2
const i64 LONG = 10000000000
const map<string, string> MAPCONST = {"hello": "world", "wisconsin": "badgers"}
const list<double> LISTCONST = [1.2, 2.1, 1.1]

Expand Down

0 comments on commit 91bbc29

Please sign in to comment.