Updated hard example

This commit is contained in:
moandji.ezana 2014-04-06 21:12:11 +02:00
parent 40e5adfd2e
commit 494049124f
2 changed files with 4 additions and 3 deletions

View file

@ -243,7 +243,8 @@ public class TomlTest {
new Toml().parse("[a]\nb=1\n[a]\nc=2"); new Toml().parse("[a]\nb=1\n[a]\nc=2");
} }
@Ignore @Test(expected = IllegalStateException.class) @Ignore
@Test(expected = IllegalStateException.class)
public void should_fail_when_illegal_characters_after_key_group() throws Exception { public void should_fail_when_illegal_characters_after_key_group() throws Exception {
new Toml().parse("[error] if you didn't catch this, your parser is broken"); new Toml().parse("[error] if you didn't catch this, your parser is broken");
} }

View file

@ -22,7 +22,7 @@ test_string = "You'll hate me after this - #" # " Annoying, isn't it?
# Each of the following keygroups/key value pairs should produce an error. Uncomment to them to test # Each of the following keygroups/key value pairs should produce an error. Uncomment to them to test
[error] if you didn't catch this, your parser is broken #[error] if you didn't catch this, your parser is broken
#string = "Anything other than tabs, spaces and newline after a keygroup or key value pair has ended should produce an error unless it is a comment" like this #string = "Anything other than tabs, spaces and newline after a keygroup or key value pair has ended should produce an error unless it is a comment" like this
#array = [ #array = [
# "This might most likely happen in multiline arrays", # "This might most likely happen in multiline arrays",
@ -30,4 +30,4 @@ test_string = "You'll hate me after this - #" # " Annoying, isn't it?
# "or here, # "or here,
# and here" # and here"
# ] End of array comment, forgot the # # ] End of array comment, forgot the #
#number = 3.14 pi <--again forgot the # #number = 3.14 pi <--again forgot the #