handling of Boolean return values

This commit is contained in:
Volker Berlin 2018-12-14 21:19:47 +01:00
parent 9958a2bed9
commit 30aa01c824

View File

@ -229,6 +229,9 @@ public class WasmRule extends TemporaryFolder {
if( expected instanceof Character ) { // WASM does not support char that it is number
expected = new Integer( ((Character)expected).charValue() );
}
if( expected instanceof Boolean ) { // WASM does not support boolean that it is number
expected = new Integer( ((Boolean)expected) ? 1 : 0 );
}
for( int i = 0; i < params.length; i++ ) {
if( params[i] instanceof Character ) {