Package com.sgfj

Examples of com.sgfj.SGFPropertyName.toCharArray()


    public void testToCharArray() {
        char[] ca1 = new char[]{'B'};
        char[] ca2 = new char[]{'S', 'Z'};
        SGFPropertyName n1 = SGFParser.parsePropertyName(ca1);
        assertTrue(equal(ca1, n1.toCharArray()));
        n1 = SGFParser.parsePropertyName(ca2);
        assertTrue(equal(ca2, n1.toCharArray()));
    }

    public void testAllowingRange() {
View Full Code Here


        char[] ca1 = new char[]{'B'};
        char[] ca2 = new char[]{'S', 'Z'};
        SGFPropertyName n1 = SGFParser.parsePropertyName(ca1);
        assertTrue(equal(ca1, n1.toCharArray()));
        n1 = SGFParser.parsePropertyName(ca2);
        assertTrue(equal(ca2, n1.toCharArray()));
    }

    public void testAllowingRange() {
        assertTrue(SGFPropertyName.AB.allowingRange());
        assertFalse(SGFPropertyName.SZ.allowingRange());
View Full Code Here

        n1 = SGFParser.parsePropertyName("C".toCharArray());
        assertSame(SGFPropertyName.C, n1);

        char[] unknown = new char[]{'X', 'X'};
        SGFPropertyName n2 = SGFParser.parsePropertyName(unknown);
        assertTrue(equal(unknown, n2.toCharArray()));
        SGFPropertyName n3 = SGFParser.parsePropertyName(unknown);
        assertSame(n3, n2);
    }

    public void testIsKnown() {
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.