Add decoding record derive key tests

This commit is contained in:
Ayaz Hafiz 2022-08-15 10:59:42 -05:00
parent 07cac2b4ce
commit 68441479b8
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 35 additions and 8 deletions

View file

@ -63,9 +63,7 @@ impl FlatDecodable {
FlatType::FunctionOrTagUnion(_name_index, _, _) => {
Err(Underivable) // yet
}
FlatType::EmptyRecord => {
Err(Underivable) // yet
}
FlatType::EmptyRecord => Ok(Key(FlatDecodableKey::Record(vec![]))),
FlatType::EmptyTagUnion => {
Err(Underivable) // yet
}