Package junit

Source Code of junit.GCDTest

// Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas

package junit;

import pass.GCD;
import junit.framework.TestCase;

public class GCDTest extends TestCase {

    private GCD gcd;

    protected void setUp() throws Exception {
        super.setUp();
        gcd = new GCD();
    }

    public void testCompute() {
        assertEquals(gcd.compute(10, 4), 2);
        assertEquals(gcd.compute(4, 9), 1);
        assertEquals(gcd.compute(0, 42), 42);
    }

    protected void tearDown() throws Exception {
        super.tearDown();
    }

}
TOP

Related Classes of junit.GCDTest

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.