We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348f22e commit 44419dcCopy full SHA for 44419dc
packages/cw-schema-codegen/tests/python_tpl.rs
@@ -92,14 +92,14 @@ fn simple_enum() {
92
}
93
94
macro_rules! validator {
95
- ($typ:ty, $example:expr) => {{
+ ($ty:ty, $example:expr) => {{
96
(
97
- stringify!($typ),
98
- cw_schema::schema_of::<$typ>(),
+ stringify!($ty),
+ cw_schema::schema_of::<$ty>(),
99
serde_json::to_string(&$example).unwrap(),
100
{
101
let a: Box<dyn FnOnce(&str)> = Box::new(|output| {
102
- let result = serde_json::from_str::<$typ>(output).unwrap();
+ let result = serde_json::from_str::<$ty>(output).unwrap();
103
assert_eq!(result, $example);
104
});
105
a
0 commit comments