mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Add derive key tests for able ext vars
This commit is contained in:
parent
a8bd529664
commit
a01583efff
4 changed files with 58 additions and 22 deletions
|
@ -75,6 +75,15 @@ fn derivable_record_ext_flex_var() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn derivable_record_ext_flex_able_var() {
|
||||
check_derivable(
|
||||
Decoder,
|
||||
v!({ a: v!(STR), }a has Symbol::DECODE_DECODER ),
|
||||
DeriveKey::Decoder(FlatDecodableKey::Record(vec!["a".into()])),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn derivable_record_with_record_ext() {
|
||||
check_derivable(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue