Examples of SGFCup


Examples of com.tinysgf.SGFCup

            };

            for (int i = 0; i < data.length; i++) {
                InputStreamReader isr = new InputStreamReader(
                        new ByteArrayInputStream(data[i].getBytes()), "UTF8");
                SGFCup parser = new SGFCup(new SGFLex(isr));
                parser.parse();
                SGFTree tree = parser.tree;
/*        System.out.println(i);
                System.out.println(tree.toString());
                System.out.println(data[i]);
*/        assertEquals(data[i], tree.toString());
View Full Code Here

Examples of com.tinysgf.SGFCup

    public void testGrow() {
        try {
            String data = "(;SZ[19](;B[da]C[RIGHT];W[ab])(;B[ad]))";
            InputStreamReader isr = new InputStreamReader(
                    new ByteArrayInputStream(data.getBytes()), "UTF8");
            SGFCup parser = new SGFCup(new SGFLex(isr));
            parser.tree = new SGFTree(1, 1);
            parser.parse();
            assertEquals(data, parser.tree.toString());
        } catch (Exception e) {
            e.printStackTrace();
            fail("Unexpected!");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.