You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jffi/files/jffi-1.2.8-junit-4.11.patch

15 lines
700 B

--- a/src/test/java/com/kenai/jffi/NumberTest.java
+++ b/src/test/java/com/kenai/jffi/NumberTest.java
@@ -234,9 +234,8 @@
private void returnF32(InvokerType type) {
LibNumberTest lib = UnitHelper.loadTestLibrary(LibNumberTest.class, type);
float[] values = { 0f, 1.0f, -2.0f };
- for (int i = 0; i < values.length; ++i) {
- assertEquals("Value not returned correctly", values[i], lib.ret_float(values[i]), 0.1f);
- }
+ float[] lib_values = { lib.ret_float(0f), lib.ret_float(1.0f), lib.ret_float(-2.0f) };
+ assertArrayEquals("Value not returned correctly", values, lib_values, 0.1f);
}
@Test public void returnDefaultF64() {