@@ -0,0 +1,1232 @@
+package dyvil.tests;%0A%0Aimport dyvil.collection.Map;%0Aimport dyvil.collection.mutable.HashMap;%0Aimport dyvil.tools.dpf.Parser;%0Aimport dyvil.tools.dpf.ast.RootNode;%0Aimport dyvil.tools.dpf.converter.flatmapper.FlatMapConverter;%0Aimport dyvil.tools.parsing.marker.MarkerList;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class DPFTests%0A%7B%0A%09private static final String TEST_FILE = %22%5Cnnode1%5Cn%22 + %22%7B%5Cn%22 + %22%5CtintProperty = 10%5Cn%22 + %22%5CtstringProperty = %5C%22abc%5C%22%5Cn%22%0A%09%09%09+ %22%5CtlistProperty = %5B 1, %5C%22a%5C%22, true %5D%5Cn%22 + %22%5CtmapProperty = %7B%5Cn%22 + %22%5Ct%5Ct1 : %5C%22a%5C%22,%5Cn%22 + %22%5Ct%5Ct2 : %5C%22b%5C%22%5Cn%22%0A%09%09%09+ %22%5Ct%7D%5Cn%22 + %22%7D%5Cn%22 + %22%5Cn%22 + %22node2.subNode%5Cn%22 + %22%7B%5Cn%22 + %22%5CtsubProperty1 = 42%5Cn%22 + %22%5Ct%5Cn%22 + %22%5CtsubNode2%5Cn%22%0A%09%09%09+ %22%5Ct%7B%5Cn%22 + %22%5Ct%5CtsubProperty2 = 13%5Cn%22 + %22%5Ct%7D%5Cn%22 + %22%7D%5Cn%22;%0A%0A%09@Test%0A%09public void testParser()%0A%09%7B%0A%09%09Parser parser = new Parser(new MarkerList(), TEST_FILE);%0A%0A%09%09RootNode rootNode = new RootNode();%0A%09%09parser.accept(rootNode);%0A%0A%09%09System.out.println(rootNode);%0A%0A%09%09assertEquals(rootNode.toString(), TEST_FILE);%0A%09%7D%0A%0A%09@Test%0A%09public void testMap()%0A%09%7B%0A%09%09Parser parser = new Parser(new MarkerList(), TEST_FILE);%0A%0A%09%09Map%3CString, Object%3E map = new HashMap%3C%3E();%0A%0A%09%09parser.accept(new FlatMapConverter(map));%0A%0A%09%09map.forEach(System.out::println);%0A%09%7D%0A%7D%0A

Add DPF Tests