Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestWasmImport (0.11 sec)

  1. src/syscall/js/js_test.go

    	Infinity: Infinity,
    	NegInfinity: -Infinity,
    	objNumber0: new Number(0),
    	objBooleanFalse: new Boolean(false),
    })`)
    
    //go:wasmimport _gotest add
    func testAdd(uint32, uint32) uint32
    
    func TestWasmImport(t *testing.T) {
    	a := uint32(3)
    	b := uint32(5)
    	want := a + b
    	if got := testAdd(a, b); got != want {
    		t.Errorf("got %v, want %v", got, want)
    	}
    }
    
    func TestBool(t *testing.T) {
    	want := true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top