Added failing test on invalid number

This commit is contained in:
moandji.ezana 2014-08-03 14:24:31 +02:00
parent 60cbf7ea36
commit 14d424e573

View file

@ -261,7 +261,7 @@ public class TomlTest {
}
@Test(expected = IllegalStateException.class)
public void should_fail_on_invalid_date() throws Exception {
public void should_fail_on_non_existant_date() throws Exception {
new Toml().parse("d = 2012-13-01T15:00:00Z");
}
@ -280,6 +280,11 @@ public class TomlTest {
new Toml().parse("[a]\nb=1\n[a]\nc=2");
}
@Test(expected = IllegalStateException.class)
public void should_fail_on_invalid_number() throws Exception {
new Toml().parse("a = 200-");
}
@Ignore
@Test(expected = IllegalStateException.class)
public void should_fail_when_illegal_characters_after_table() throws Exception {