Skip to content

Commit

Permalink
Add partial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Nov 2, 2022
1 parent 94b07e8 commit 127e8f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ fn rust_type_from_type2(types: &mut IntermediateTypes, parent_visitor: &ParentVi
RustType::Tagged(tag.expect("tagged data without tag not supported"), Box::new(rust_type(types, parent_visitor, t)))
},
Type2::ParenthesizedType { pt, .. } => {
rust_type(types, pt)
rust_type(types, parent_visitor, pt)
},
_ => {
panic!("Ignoring Type2: {:?}", type2);
Expand Down
5 changes: 4 additions & 1 deletion tests/core/input.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ signed_ints = [
; The fix would be ideal as even though the true min in CBOR would be -u64::MAX
; we can't test that since isize::BITS is never > 64 in any normal system and likely never will be
i64_min: -9223372036854775808
]
]

paren_size = uint .size (1)
paren_cbor = bytes .cbor (text)

0 comments on commit 127e8f5

Please sign in to comment.