@@ -0,0 +1,670 @@
+package nom.bdezonia.zorbage.misc;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Test;%0A%0Apublic class TestLongUtils %7B%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09assertEquals(0, LongUtils.numElements(new long%5B%5D %7B%7D));%0A%09%09assertEquals(1, LongUtils.numElements(new long%5B%5D %7B1%7D));%0A%09%09assertEquals(6, LongUtils.numElements(new long%5B%5D %7B2,3%7D));%0A%09%09assertEquals(120, LongUtils.numElements(new long%5B%5D %7B4,5,6%7D));%0A%09%09try %7B%0A%09%09%09LongUtils.numElements(new long%5B%5D %7B-1%7D);%0A%09%09%09fail();%0A%09%09%7D catch (IllegalArgumentException e) %7B%0A%09%09%09assertTrue(true);%0A%09%09%7D%0A%09%09try %7B%0A%09%09%09LongUtils.numElements(new long%5B%5D %7B2, Long.MAX_VALUE%7D);%0A%09%09%09fail();%0A%09%09%7D catch (IllegalArgumentException e) %7B%0A%09%09%09assertTrue(true);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Define tests for LongUtils class