mirror of
https://github.com/plexusorg/toml4j.git
synced 2024-12-29 11:42:15 +00:00
Moved example.toml
This commit is contained in:
parent
c539be53b9
commit
e3a3d22a46
2 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class RealWorldTest {
|
|||
public void should_parse_example() throws Exception {
|
||||
TomlParser parser = Parboiled.createParser(TomlParser.class);
|
||||
|
||||
String toml = new Scanner(new File(getClass().getResource("/example.toml").getFile())).useDelimiter("\\Z").next();
|
||||
String toml = new Scanner(new File(getClass().getResource("example.toml").getFile())).useDelimiter("\\Z").next();
|
||||
ParsingResult<Object> result = new RecoveringParseRunner<Object>(parser.Toml()).run(toml);
|
||||
|
||||
Map<String, Object> root = (Map<String, Object>) result.valueStack.peek(result.valueStack.size() - 2);
|
||||
|
|
Loading…
Reference in a new issue