@jjwiseman has joined the channel
hi! I’ve got a rackunit test where i’m using check-equal?
to compare two hash tables, like this: (check-equal? last-msg
#hasheq((data . #hasheq((requestId . 1)
(result . 5)))
(path . "/rpc/response")))
and i can’t figure out why it’s failing: --------------------
RPC server
FAILURE
name: check-equal?
location: main.rkt:328:9
actual: '#hasheq((data . #hasheq((requestId . 1) (result . 5)))
(path . "/rpc/response"))
expected: '#hasheq((data . #hasheq((requestId . 1) (result . 5)))
(path . "/rpc/response"))
--------------------
this is literally the first racket code i’ve ever written, so i’m sure i’m doing something dumb, but in a repl it seems like (check-equal? #hasheq((data . #hasheq((requestId . 1) (result . 5))) (path . "/rpc/response")) #hasheq((data . #hasheq((requestId . 1) (result . 5))) (path . "/rpc/response"))
works as i’d expect.
would it work if #hasheq
s are replaced by #hash
s?