Add tests for error message pruning.
This commit is contained in:
parent
fef4b28b88
commit
86c87f5fda
|
@ -0,0 +1,11 @@
|
||||||
|
#;
|
||||||
|
(exn-pred #px"^((?!Integer).)+$")
|
||||||
|
#lang typed/racket
|
||||||
|
|
||||||
|
;; Tests that function type pruning in errors is working. If the string
|
||||||
|
;; "Integer" shows up the error (which should be about Number), then
|
||||||
|
;; pruning is broken.
|
||||||
|
;; Because `exn-pred' only checks the first line of the error, only one
|
||||||
|
;; error expression per file (otherwise, the first line is a summary).
|
||||||
|
|
||||||
|
(add1 'foo1)
|
|
@ -0,0 +1,11 @@
|
||||||
|
#;
|
||||||
|
(exn-pred #px"^((?!Integer).)+$")
|
||||||
|
#lang typed/racket
|
||||||
|
|
||||||
|
;; Tests that function type pruning in errors is working. If the string
|
||||||
|
;; "Integer" shows up the error (which should be about Number), then
|
||||||
|
;; pruning is broken.
|
||||||
|
;; Because `exn-pred' only checks the first line of the error, only one
|
||||||
|
;; error expression per file (otherwise, the first line is a summary).
|
||||||
|
|
||||||
|
(+ 'foo1 3)
|
|
@ -0,0 +1,11 @@
|
||||||
|
#;
|
||||||
|
(exn-pred #px"^((?!Integer).)+$")
|
||||||
|
#lang typed/racket
|
||||||
|
|
||||||
|
;; Tests that function type pruning in errors is working. If the string
|
||||||
|
;; "Integer" shows up the error (which should be about Number), then
|
||||||
|
;; pruning is broken.
|
||||||
|
;; Because `exn-pred' only checks the first line of the error, only one
|
||||||
|
;; error expression per file (otherwise, the first line is a summary).
|
||||||
|
|
||||||
|
(+ 'foo1 "a")
|
Loading…
Reference in New Issue
Block a user