package stage2 import "testing" func TestIntroSafe(t *testing.T) { if !IntroSafe("Your transaction details are ready!") { t.Fatal("valid intro rejected") } for _, s := range []string{"Your payment is confirmed", "Sent 9000 sats", ""} { if IntroSafe(s) { t.Fatalf("unsafe intro accepted: %q", s) } } }