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 23ca6f8 commit e3dba5eCopy full SHA for e3dba5e
1 file changed
src/codegen/parser.rs
@@ -166,7 +166,7 @@ mod tests {
166
pragmas: vec!["exportc".into(), "cdecl".into()],
167
doc: "Say hello.".into(),
168
};
169
- let proc = parse_function(&func).unwrap();
+ let proc = parse_function(&func).expect("TODO: handle error");
170
assert_eq!(proc.name, "greet");
171
assert_eq!(proc.params.len(), 1);
172
assert_eq!(proc.return_type, Some(NimType::Primitive("cstring".into())));
@@ -183,7 +183,7 @@ mod tests {
183
pragmas: vec!["exportc".into()],
184
doc: String::new(),
185
186
187
assert!(proc.return_type.is_none());
188
assert!(proc.doc.is_none());
189
}
0 commit comments