Add derive key tests for able ext vars

This commit is contained in:
Ayaz Hafiz 2022-08-17 10:23:56 -05:00
parent a8bd529664
commit a01583efff
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 58 additions and 22 deletions

View file

@ -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(