Moved example.toml

This commit is contained in:
moandji.ezana 2013-02-28 09:34:21 +02:00
parent c539be53b9
commit e3a3d22a46
2 changed files with 1 additions and 1 deletions

View file

@ -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);