jjwiseman
2018-3-3 00:53:40

@jjwiseman has joined the channel


jjwiseman
2018-3-3 00:56:28

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")) --------------------


jjwiseman
2018-3-3 00:57:47

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.


shu--hung
2018-3-3 04:58:36

would it work if #hasheqs are replaced by #hashs?