mirror of
https://github.com/plexusorg/toml4j.git
synced 2024-10-31 17:29:14 +00:00
Updated hard example
This commit is contained in:
parent
40e5adfd2e
commit
494049124f
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 #
|
||||||
|
|
Loading…
Reference in a new issue