Files
wehub-resource-sync c4536f7e05
CI / test (push) Failing after 1s
CI / macOS amd64 (push) Has been cancelled
CI / macOS arm64 (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:30:31 +08:00

18 lines
425 B
Go

package asmref
import "testing"
func TestLookup(t *testing.T) {
// The embedded table is generated from gen/testdata; ADD is always present.
e, ok := Lookup("add")
if !ok {
t.Fatal("ADD not found (is table.json generated?)")
}
if e.Brief == "" || len(e.Syntax) == 0 {
t.Fatalf("ADD entry looks empty: %#v", e)
}
if _, ok := Lookup("NOTAREALINSTRUCTION"); ok {
t.Fatal("unexpected hit for bogus mnemonic")
}
}