From 9e2ee8ecc62d4a87ee4fe4de4289f8a9d9c6d920 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Fri, 20 Aug 2010 10:20:38 -0600 Subject: [PATCH] Fixing another print related test --- collects/tests/plai/datatype.rkt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/collects/tests/plai/datatype.rkt b/collects/tests/plai/datatype.rkt index c5a99396a3..a830e52d66 100644 --- a/collects/tests/plai/datatype.rkt +++ b/collects/tests/plai/datatype.rkt @@ -32,10 +32,10 @@ (eli:test (i 4) - (regexp-match "\\(exception \\(make-i #f\\) \".+/collects/tests/plai/datatype\\.rkt:13\\.3: use broke the contract \\(-> number\\? i\\?\\) on make-i given to \\\\n \\(file\\\\n .+/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: #f\" \"at line 36\"\\)" + (regexp-match "\\(exception \\(make-i #f\\) \".+/collects/tests/plai/datatype\\.rkt:13\\.3: use broke the contract \\(-> number\\? i\\?\\) on make-i given to \\\\n \\(file\\\\n .+/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: #f\" ' \"at line 36\"\\)" (with-output-to-string (λ () (test/exn (make-i #f) "contract")))) - (regexp-match "\\(exception \\(i-f #f\\) \".+/collects/tests/plai/datatype\\.rkt:13\\.6: use broke the contract \\(-> i\\? number\\?\\) on i-f given to \\\\n \\(file\\\\n .+/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: #f\" \"at line 39\"\\)" + (regexp-match "\\(exception \\(i-f #f\\) \".+/collects/tests/plai/datatype\\.rkt:13\\.6: use broke the contract \\(-> i\\? number\\?\\) on i-f given to \\\\n \\(file\\\\n .+/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: #f\" ' \"at line 39\"\\)" (with-output-to-string (λ () (test/exn (i-f #f) "contract")))) @@ -45,10 +45,10 @@ => 1 - (regexp-match "\\(exception \\(c1 \\(quote not-a-number\\)\\) \".+/collects/tests/plai/datatype\\.rkt:29\\.17: use broke the contract \\(-> number\\? c1\\?\\) on c1 given to \\\\n \\(file\\\\n .+/plt/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: 'not-a-number\" \"at line 49\"\\)" + (regexp-match "\\(exception \\(c1 \\(quote not-a-number\\)\\) \".+/collects/tests/plai/datatype\\.rkt:29\\.17: use broke the contract \\(-> number\\? c1\\?\\) on c1 given to \\\\n \\(file\\\\n .+/plt/collects/tests/plai/datatype\\.rkt\\)\\\\n; expected , given: 'not-a-number\" ' \"at line 49\"\\)" (with-output-to-string (λ () (test (c1 'not-a-number) (list 5))))) - (regexp-match (regexp-quote "(exception (type-case t (list 1) (c () 1)) \"type-case: expected a value from type t, got: (1)\" \"at line 53\")") + (regexp-match (regexp-quote "(exception (type-case t (list 1) (c () 1)) \"type-case: expected a value from type t, got: (1)\" ' \"at line 53\")") (with-output-to-string (λ () (test/exn (type-case t (list 1) (c () 1))