package examples import ( unsafeRandom "math/rand/v2" "testing" ) func TestAdd(t *testing.T) { add, done, err := Add() if err != nil { t.Fatal(err) } defer done() for range 128 { a, b := unsafeRandom.Uint64(), unsafeRandom.Uint64() expected := a + b got := add(a, b) if got != expected { t.Errorf("Add(%x, %x) = %x, want %x", a, b, got, expected) } } }