Skip to content

Commit f78cd04

Browse files
Add missing paren tests
1 parent 3cd111b commit f78cd04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/core/tests.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@ mod tests {
127127
deser_test(&max);
128128
}
129129

130+
#[test]
131+
fn paren_types() {
132+
{
133+
let _: ParenSize = 5u8;
134+
}
135+
{
136+
let cbor = ParenCbor::new("foo".to_string());
137+
// TODO: fix this assert by inputting the right value
138+
assert_eq!(cbor.to_bytes(), vec![]);
139+
}
140+
}
141+
130142
#[test]
131143
fn toplevel_types() {
132144
{

0 commit comments

Comments
 (0)