From: Alexis Laferrière Date: Mon, 24 Aug 2015 17:28:24 +0000 (-0400) Subject: contrib/mnit_test: deactivate the test reading `long` from shared_preferences X-Git-Tag: v0.7.8~68^2~6 X-Git-Url: http://nitlanguage.org?hp=7e5bdf7abe182a2c6926ba26a6f84039dd56a2b0 contrib/mnit_test: deactivate the test reading `long` from shared_preferences Signed-off-by: Alexis Laferrière --- diff --git a/contrib/mnit_test/src/test_shared_preferences.nit b/contrib/mnit_test/src/test_shared_preferences.nit index 0032f95..ec0b607 100644 --- a/contrib/mnit_test/src/test_shared_preferences.nit +++ b/contrib/mnit_test/src/test_shared_preferences.nit @@ -55,7 +55,11 @@ redef class App assert sp.float("wrong_float", 0.0) == 0.0 assert sp.int("an_int", 0) == 666 assert sp.int("a_second_int", 0) == 0 - assert sp.long("a_long", 0) == 6666666666 + + # FIXME getting long from Java on Android is broken + # The C FFI (underlying the Java FFI) version of Int is a `long` which is on 32 bits on Android. + #assert sp.long("a_long", 0) == 6666666666 + assert sp.long("wrong_long", 0) == 0 assert sp.string("a_string", "ERROR!") == "A string" assert sp.string("wrong_string", "ERROR!") == "ERROR!"