From 9cccd509e323e4444ee71e1569bcd00f1060fe31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Tue, 18 Feb 2025 21:31:53 +0100 Subject: [PATCH] no longer skip f32 and f64 now that they work consistently --- tests-pl/ffi_struct.pl | 6 +----- tests/scryer/ffi.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests-pl/ffi_struct.pl b/tests-pl/ffi_struct.pl index 6c7fff98..23ec2af7 100644 --- a/tests-pl/ffi_struct.pl +++ b/tests-pl/ffi_struct.pl @@ -10,10 +10,6 @@ test :- ffi:'construct'(8, 12, 46, 40, 127, 1.368, -4.587, PG), write(("PG"-PG)), nl, ffi:'modify'(PG, [pg, A, B, C, D, A2, E, F]), - % skipping E & F for now as the result changes between runs for some reason - write(("PG2"-[pg, A, B, C, D, A2, "skip", "skip"])), nl, - % avoide singelton warning - E = _, - F = _. + write(("PG2"-[pg, A, B, C, D, A2, E, F])), nl. :- initialization(test). diff --git a/tests/scryer/ffi.rs b/tests/scryer/ffi.rs index 472f5df4..107b5ff0 100644 --- a/tests/scryer/ffi.rs +++ b/tests/scryer/ffi.rs @@ -243,6 +243,6 @@ fn ffi_struct() { load_module_test_with_input( "tests-pl/ffi_struct.pl", format!("LIB={dynlib_path:?}."), - "[P,G]-[pg,8,12,46,40,127,1.3680000305175781,-4.587]\n[P,G,2]-[pg,127,65523,4294967249,18446744073709551575,8,[s,k,i,p],[s,k,i,p]]\n", + "[P,G]-[pg,8,12,46,40,127,1.3680000305175781,-4.587]\n[P,G,2]-[pg,127,65523,4294967249,18446744073709551575,8,-1.3680000305175781,4.587]\n", ); } -- 2.54.0