/** Test of ones method, of class IrCoreUtils. */ @Test public void testOnes_int() { System.out.println("ones"); int width = 9; int expResult = 511; int result = IrCoreUtils.ones(width); assertEquals(result, expResult); }
/** Test of ones method, of class IrCoreUtils. */ @Test public void testOnes_long() { System.out.println("ones"); long width = 7L; long expResult = 127L; long result = IrCoreUtils.ones(width); assertEquals(result, expResult); }