Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/math/big/nat_test.go

    		}
    	}
    }
    
    func testFunNN(t *testing.T, msg string, f funNN, a argNN) {
    	z := f(nil, a.x, a.y)
    	if z.cmp(a.z) != 0 {
    		t.Errorf("%s%+v\n\tgot z = %v; want %v", msg, a, z, a.z)
    	}
    }
    
    func TestFunNN(t *testing.T) {
    	for _, a := range sumNN {
    		arg := a
    		testFunNN(t, "add", nat.add, arg)
    
    		arg = argNN{a.z, a.y, a.x}
    		testFunNN(t, "add symmetric", nat.add, arg)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top