@@ -0,0 +1,1774 @@
+/*%0A * Copyright 2017 Volker Berlin (i-net software)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage de.inetsoftware.jwebassembly.err;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.Collection;%0A%0Aimport org.junit.ClassRule;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.junit.runners.Parameterized.Parameters;%0Aimport org.webassembly.annotation.Export;%0A%0Aimport de.inetsoftware.jwebassembly.ScriptEngine;%0Aimport de.inetsoftware.jwebassembly.WasmRule;%0A%0A/**%0A * @author Volker Berlin%0A */%0A@RunWith(Parameterized.class)%0Apublic class RuntimeErrors %7B%0A%0A    @ClassRule%0A    public static WasmRule     rule = new WasmRule( TestClass.class );%0A%0A    private final ScriptEngine script;%0A%0A    public RuntimeErrors( ScriptEngine script ) %7B%0A        this.script = script;%0A    %7D%0A%0A    @Parameters( name = %22%7B0%7D%22 )%0A    public static Collection%3CObject%5B%5D%3E data() %7B%0A        return ScriptEngine.testParams();%0A    %7D%0A%0A    @Test%0A    public void longReturn() %7B%0A        assertEquals( %22TypeError: cannot pass i64 to or from JS%22, rule.evalWasm( script, %22longReturn%22 ) );%0A    %7D%0A%0A    static class TestClass %7B%0A%0A        @Export%0A        static long longReturn() %7B%0A            return Long.MAX_VALUE;%0A        %7D%0A    %7D%0A%7D%0A

add error tests