Skip to content

Commit

Permalink
Minor new regression test for lexing decimal fractions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mn200 committed Aug 3, 2011
1 parent 2d9dc65 commit 7d77e3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parse/selftest.sml
Expand Up @@ -235,7 +235,9 @@ val _ = app test [("abc", [Ident "abc"]),
fracpart = ai 23}]),
("0.", [Numeral (ai 0, NONE), Ident "."]),
("a0.", [Ident "a0", Ident "."]),
("-0.", [Ident "-", Numeral (ai 0, NONE), Ident "."])
("-0.", [Ident "-", Numeral (ai 0, NONE), Ident "."]),
("{2.3", [Ident "{", Fraction{wholepart = ai 2, places = 1,
fracpart = ai 3}])
]


Expand Down

0 comments on commit 7d77e3c

Please sign in to comment.