mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add decoding record derive key tests
This commit is contained in:
parent
07cac2b4ce
commit
68441479b8
4 changed files with 35 additions and 8 deletions
|
@ -7,7 +7,7 @@
|
|||
use insta::assert_snapshot;
|
||||
|
||||
use crate::{
|
||||
test_hash_eq, test_hash_neq,
|
||||
test_key_eq, test_key_neq,
|
||||
util::{check_immediate, derive_test},
|
||||
v,
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ use roc_types::subs::Variable;
|
|||
|
||||
// {{{ hash tests
|
||||
|
||||
test_hash_eq! {
|
||||
test_key_eq! {
|
||||
ToEncoder,
|
||||
|
||||
same_record:
|
||||
|
@ -70,7 +70,7 @@ test_hash_eq! {
|
|||
v!(@Symbol::BOOL_BOOL => v!([ True, False ])), v!(Symbol::UNDERSCORE => v!([False, True]))
|
||||
}
|
||||
|
||||
test_hash_neq! {
|
||||
test_key_neq! {
|
||||
ToEncoder,
|
||||
|
||||
different_record_fields:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue