You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/jsonic-demo-2/test-sources.rkt

11 lines
342 B
Racket

#lang at-exp br
(require br/test rackunit json)
;; don't compare string output directly because
;; hash element isn't converted in a reliable order
(check-equal? (string->jsexpr (run-source "jsonic-test.rkt"))
'(null
42
#t
("array" "of" "strings")
#hasheq((key-1 . null) (key-2 . #f) (key-3 . #hasheq((subkey . 21))))))