|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
#lang at-exp br
|
|
|
|
|
(require br/test rackunit)
|
|
|
|
|
(require br/test rackunit json)
|
|
|
|
|
|
|
|
|
|
(check-equal? (run-source "jsonic-test.rkt") @string-append{
|
|
|
|
|
[
|
|
|
|
|
null,
|
|
|
|
|
42,
|
|
|
|
|
true,
|
|
|
|
|
["array","of","strings"],
|
|
|
|
|
{"key-2":false,"key-1":null,"key-3":{"subkey":21}}
|
|
|
|
|
]})
|
|
|
|
|
;; 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))))))
|