mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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 );
|
||||
assertEquals( String.valueOf( expected ), actual );
|
||||
if( expected instanceof Double ) { // handle different string formating of double values
|
||||
assertEquals( actual, expected, Double.valueOf( actual ) );
|
||||
} else {
|
||||
assertEquals( String.valueOf( expected ), actual );
|
||||
}
|
||||
} catch( Throwable ex ) {
|
||||
failed = true;
|
||||
throwException( ex );
|
||||
|
Loading…
x
Reference in New Issue
Block a user