mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
test direct compile again
This commit is contained in:
parent
ce93ce517e
commit
40fdbaffc5
@ -78,6 +78,16 @@ public class SampleCompileTest {
|
||||
assertEquals( expected, text );
|
||||
}
|
||||
|
||||
@Test
|
||||
public void compileToBinary() throws Exception {
|
||||
JWebAssembly webAsm = new JWebAssembly();
|
||||
webAsm.addFile( classFile );
|
||||
byte[] actual = webAsm.compileToBinary();
|
||||
byte[] expected = {0, 97, 115, 109, 1, 0, 0, 0};
|
||||
actual = Arrays.copyOf( actual, 8 );
|
||||
assertArrayEquals( expected, actual );
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void compileToBinary() throws Exception {
|
||||
// URL url = SampleCompileTest.class.getResource( "samples/" + testName + ".wasm" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user