Skip to content

Commit 127e8f5

Browse files
Add partial tests
1 parent 94b07e8 commit 127e8f5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ fn rust_type_from_type2(types: &mut IntermediateTypes, parent_visitor: &ParentVi
701701
RustType::Tagged(tag.expect("tagged data without tag not supported"), Box::new(rust_type(types, parent_visitor, t)))
702702
},
703703
Type2::ParenthesizedType { pt, .. } => {
704-
rust_type(types, pt)
704+
rust_type(types, parent_visitor, pt)
705705
},
706706
_ => {
707707
panic!("Ignoring Type2: {:?}", type2);

tests/core/input.cddl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ signed_ints = [
6161
; The fix would be ideal as even though the true min in CBOR would be -u64::MAX
6262
; we can't test that since isize::BITS is never > 64 in any normal system and likely never will be
6363
i64_min: -9223372036854775808
64-
]
64+
]
65+
66+
paren_size = uint .size (1)
67+
paren_cbor = bytes .cbor (text)

0 commit comments

Comments
 (0)