package com.phraktle.histodiff;

import static org.junit.Assert.*;
import static com.phraktle.histodiff.HistoDiff.diff;

import org.junit.Test;

public class HistoDiffTest {

    @Test
    public void testDiff() {
        int[] pos = new int[] { 1, 2 };
        int[] zero = new int[] { 0, 0 };
        int[] neg = new int[] { -1, -2 };
        assertArrayEquals(zero, diff(pos, pos));
        assertArrayEquals(pos, diff(zero, pos));
        assertArrayEquals(neg, diff(pos, zero));
        assertArrayEquals(pos, diff(null, pos));
        assertArrayEquals(neg, diff(pos, null));
    }

}

@@ -215,19 +215,20 @@
         
-int
+long
 %5B%5D pos =
@@ -228,27 +228,28 @@
 %5D pos = new 
-int
+long
 %5B%5D %7B 1, 2 %7D;
@@ -257,19 +257,20 @@
         
-int
+long
 %5B%5D zero 
@@ -271,27 +271,28 @@
  zero = new 
-int
+long
 %5B%5D %7B 0, 0 %7D;
@@ -300,19 +300,20 @@
         
-int
+long
 %5B%5D neg =
@@ -321,11 +321,12 @@
 new 
-int
+long
 %5B%5D %7B

update unit test