mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-26 07:49:28 +01:00
handle different string formating of double values
This commit is contained in:
parent
6bcda0daa5
commit
d2d6d363f1
@ -354,7 +354,11 @@ public class WasmRule extends TemporaryFolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String actual = evalWasm( script, methodName, params );
|
String actual = evalWasm( script, methodName, params );
|
||||||
|
if( expected instanceof Double ) { // handle different string formating of double values
|
||||||
|
assertEquals( actual, expected, Double.valueOf( actual ) );
|
||||||
|
} else {
|
||||||
assertEquals( String.valueOf( expected ), actual );
|
assertEquals( String.valueOf( expected ), actual );
|
||||||
|
}
|
||||||
} catch( Throwable ex ) {
|
} catch( Throwable ex ) {
|
||||||
failed = true;
|
failed = true;
|
||||||
throwException( ex );
|
throwException( ex );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user