BitUtils { public static boolean haveSameSign(float a, float b) { return a >= 0 && b >= 0 || a < 0 && b < 0; }  static boolean haveSameSign(float a, float b); static boolean haveSameSign(double a, double b);  }
@Test public void testSameSign() { assertThat(haveSameSign(-1, -5)).isTrue(); }
@Test public void testOppositeSignA() { assertThat(haveSameSign(1, -5)).isFalse(); }
@Test public void testNotSameSignB() { assertThat(haveSameSign(-1, 5)).isFalse(); }