Beispiel #1
0
 @Test
 public void test1() {
   int[] a = new int[] {121, 144, 19, 161, 19, 144, 19, 11};
   int[] b = new int[] {121, 14641, 20736, 361, 25921, 361, 20736, 361};
   assertEquals(AreSame.comp(a, b), true);
 }
Beispiel #2
0
 @Test
 public void testEmpty() {
   int[] a = new int[] {};
   int[] b = new int[] {};
   assertEquals(AreSame.comp(a, b), true);
 }
Beispiel #3
0
 @Test
 public void testALonger() {
   int[] a = new int[] {121, 144, 19, 161, 19, 144, 19, 11, 14400};
   int[] b = new int[] {121, 14641, 20736, 361, 25921, 361, 20736, 361};
   assertEquals(AreSame.comp(a, b), false);
 }
Beispiel #4
0
 @Test
 public void testNull() {
   assertEquals(AreSame.comp(null, null), false);
 }