From f78cd042b5f34d37a08505cee7f0755bfeb6a8eb Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Thu, 3 Nov 2022 13:08:31 +0900 Subject: [PATCH] Add missing paren tests --- tests/core/tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/core/tests.rs b/tests/core/tests.rs index 6b93a34..3a354df 100644 --- a/tests/core/tests.rs +++ b/tests/core/tests.rs @@ -127,6 +127,18 @@ mod tests { deser_test(&max); } + #[test] + fn paren_types() { + { + let _: ParenSize = 5u8; + } + { + let cbor = ParenCbor::new("foo".to_string()); + // TODO: fix this assert by inputting the right value + assert_eq!(cbor.to_bytes(), vec![]); + } + } + #[test] fn toplevel_types() { {