receipt_test.go
TEXT FILE407 B · Public source code for developers, search crawlers and AI agents
1package stage2
2
3import (
4 "os"
5 "strings"
6 "testing"
7)
8
9func TestReceipt(t *testing.T) {
10 b, e := os.ReadFile("send_fixture.json")
11 if e != nil {
12 t.Fatal(e)
13 }
14 r, e := ParseSend(b)
15 if e != nil {
16 t.Fatal(e)
17 }
18 s := Receipt(r)
19 for _, v := range []string{"10000", "9000", "58000", "4b862b31", "Confirmation has not been verified"} {
20 if !strings.Contains(s, v) {
21 t.Fatalf("missing %s", v)
22 }
23 }
24}Read-only source · Select a line number to link directly · Raw download above
