internal/or/panic_test.go
raw| 1 | package or_test |
| 2 | |
| 3 | import ( |
| 4 | "reflect" |
| 5 | "testing" |
| 6 | |
| 7 | "github.com/maxatome/go-testdeep/internal/or" |
| 8 | "github.com/maxatome/go-testdeep/internal/test" |
| 9 | ) |
| 10 | |
| 11 | func TestOrPanic(t *testing.T) { |
| 12 | test.CheckPanic(t, |
| 13 | func() { or.Panic(false, "big ", reflect.Uint16, " bang") }, |
| 14 | "big uint16 bang") |
| 15 | |
| 16 | or.Panic(true, "no panic at all") |
| 17 | } |