mirror of
https://github.com/RustyRaptor/Programs.git
synced 2026-12-03 23:55:24 -07:00
added a test to test different values for x and y
This commit is contained in:
1 parent
5988bd596a
commit
971ae9309d
1 file changed
+11
@@ -54,6 +54,17 @@ public class Circle2Test {
|
||||
Assert.assertTrue(p.x == 0 && p.y == 1);
|
||||
}
|
||||
|
||||
//
|
||||
// Test with different values
|
||||
//
|
||||
@Test
|
||||
public void simpleMoveDiff() {
|
||||
Point p;
|
||||
System.out.println("Running test simpleMoveDiff.");
|
||||
p = circle2.moveBy(2, 3);
|
||||
Assert.assertTrue(p.x == 3 && p.y == 5);
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
try {
|
||||
org.junit.runner.JUnitCore.runClasses(
|
||||
|
||||
Reference in new issue
Block a user