hawk icon indicating copy to clipboard operation
hawk copied to clipboard

Support checking the absence of a key with =?

Open snoe opened this issue 2 years ago • 0 comments

There are some instances where it's useful to assert on the shape of some keys of a map while also asserting that another key is not present.

https://github.com/search?q=repo%3Ametabase%2Fmetabase+%22key+is+not+present.%22&type=code

I'm not sure if it's simply a matter of def this or if there's magic missing https://github.com/metabase/hawk/blob/main/src/mb/hawk/assert_exprs/approximately_equal.clj#L101C68-L101C108

snoe avatar Jun 23 '23 21:06 snoe