This commit is contained in:
2026-06-08 13:21:57 +02:00
parent 823130e3ac
commit 8bee76328b
23 changed files with 734 additions and 382 deletions
+4 -17
View File
@@ -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)