intro_validator_test.go
TEXT FILE316 B · Public source code for developers, search crawlers and AI agents
1package stage2
2
3import "testing"
4
5func TestIntroSafe(t *testing.T) {
6 if !IntroSafe("Your transaction details are ready!") {
7 t.Fatal("valid intro rejected")
8 }
9 for _, s := range []string{"Your payment is confirmed", "Sent 9000 sats", ""} {
10 if IntroSafe(s) {
11 t.Fatalf("unsafe intro accepted: %q", s)
12 }
13 }
14}Read-only source · Select a line number to link directly · Raw download above
