package stage2 import ( "os" "strings" "testing" ) func TestReceipt(t *testing.T) { b, e := os.ReadFile("send_fixture.json") if e != nil { t.Fatal(e) } r, e := ParseSend(b) if e != nil { t.Fatal(e) } s := Receipt(r) for _, v := range []string{"10000", "9000", "58000", "4b862b31", "Confirmation has not been verified"} { if !strings.Contains(s, v) { t.Fatalf("missing %s", v) } } }