Examples of SGFProp


Examples of com.tinysgf.SGFProp

import junit.framework.TestCase;

public class SGFPropTest extends TestCase {

    public void testGetLabel() {
        SGFProp p = new SGFProp(SGFProp.LB, "ab:A".toCharArray());
        assertEquals("A", p.getLabel());
        p = new SGFProp(SGFProp.LB, "ab:".toCharArray());
        assertEquals("", p.getLabel());
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        p = new SGFProp(SGFProp.LB, "ab:".toCharArray());
        assertEquals("", p.getLabel());
    }

    public void testGetX() {
        SGFProp p = new SGFProp(SGFProp.LB, "ab:A".toCharArray());
        assertEquals(0, p.getX());
        SGFProp p2 = new SGFProp(SGFProp.LB, "CB:A".toCharArray());
        assertEquals(2, p2.getX());
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        SGFProp p2 = new SGFProp(SGFProp.LB, "CB:A".toCharArray());
        assertEquals(2, p2.getX());
    }

    public void testGetY() {
        SGFProp p = new SGFProp(SGFProp.LB, "ab:A".toCharArray());
        assertEquals(1, p.getY());
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        SGFProp p = new SGFProp(SGFProp.LB, "ab:A".toCharArray());
        assertEquals(1, p.getY());
    }

    public void testGetInt() {
        SGFProp p = new SGFProp(SGFProp.SZ, "123".toCharArray());
        assertEquals(123, p.getInt());
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        SGFProp p = new SGFProp(SGFProp.SZ, "123".toCharArray());
        assertEquals(123, p.getInt());
    }

    public void testGetFloat() {
        SGFProp p = new SGFProp(SGFProp.KM, "5.5".toCharArray());
        assertTrue(p.getFloat() == (float)5.5);
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        SGFProp p = new SGFProp(SGFProp.KM, "5.5".toCharArray());
        assertTrue(p.getFloat() == (float)5.5);
    }

    public void testGetText() {
        SGFProp p = new SGFProp(SGFProp.C, "RIGHT".toCharArray());
        assertEquals("RIGHT", p.getText());
    }
View Full Code Here

Examples of com.tinysgf.SGFProp

        SGFProp p = new SGFProp(SGFProp.C, "RIGHT".toCharArray());
        assertEquals("RIGHT", p.getText());
    }

    public void testToString() {
        SGFProp p = new SGFProp(SGFProp.SZ, "123".toCharArray());
        assertEquals("SZ[123]", p.toString());
    }
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.