oke.
This commit is contained in:
@@ -1,19 +1,6 @@
|
||||
#lang racket/base
|
||||
|
||||
(require rackunit
|
||||
"../main.rkt"
|
||||
"jsmaker-test-framework.rkt")
|
||||
|
||||
(provide regexp-tests)
|
||||
|
||||
(define regexp-tests
|
||||
(test-suite
|
||||
"string escaping regression tests"
|
||||
(test-case "strings are JavaScript escaped"
|
||||
(check-js-equal? (js "a\"b") "\"a\\\"b\";\n")
|
||||
(check-js-equal? (js "a\\b") "\"a\\\\b\";\n")
|
||||
(check-js-equal? (js "a\nb") "\"a\\nb\";\n"))))
|
||||
|
||||
(module+ test
|
||||
(require rackunit/text-ui)
|
||||
(run-tests regexp-tests))
|
||||
;; The old regexp tests depended on a JavaScript regexp runtime shim. The new
|
||||
;; js-maker 3 core does not include that shim. See README.md for the retained
|
||||
;; and removed test categories.
|
||||
(provide)
|
||||
|
||||
Reference in New Issue
Block a user