import junit.framework.*;
import junit.textui.*;

/** Test ISqrt. */
public class TestISqrt extends TestCase
{

    /** Initialize this test driver class. */
    public TestISqrt(String name) {
        super(name);
    }

    /** Run the tests. */
    public static void main(String[] args) {
        junit.textui.TestRunner.run(suite());
    }

    /** Returns the test suite for this test class. */
    public static junit.framework.Test suite() {
        return new junit.framework.TestSuite(TestISqrt.class);
    }

    /** Test isqrt. */
    public void testIsqrt() {
        // line 26 below
        assertEquals(0, ISqrt.isqrt(0));
        assertEquals(1, ISqrt.isqrt(1));
        assertEquals(1, ISqrt.isqrt(2));
        assertEquals(1, ISqrt.isqrt(3));
        assertEquals(2, ISqrt.isqrt(4));
        assertEquals(2, ISqrt.isqrt(7));
        assertEquals(3, ISqrt.isqrt(9));
        assertEquals(10, ISqrt.isqrt(100));
    }
}
