mirror of
https://github.com/plexusorg/toml4j.git
synced 2024-12-29 11:42:15 +00:00
Added failing test on invalid number
This commit is contained in:
parent
60cbf7ea36
commit
14d424e573
1 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue