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 -16
View File
@@ -1,18 +1,6 @@
#lang racket/base
(require rackunit
"../main.rkt"
"jsmaker-test-framework.rkt")
(provide object-tests)
(define object-tests
(test-suite
"object construction regression tests"
(test-case "new and method calls"
(check-js-equal? (js (new Date)) "new Date();\n")
(check-js-equal? (js (send console log "ok")) "console.log(\"ok\");\n"))))
(module+ test
(require rackunit/text-ui)
(run-tests object-tests))
;; The old js-maker 2 hash tests covered a runtime library that is intentionally
;; not part of the compact js-maker 3 restart. See README.md for the retained
;; and removed test categories.
(provide)