Unverified Commit 20971f93 authored by Robin Freyler's avatar Robin Freyler
Browse files

[lang] Add an initial POC empty contract input test

parent 145d889f
......@@ -59,4 +59,9 @@ fn contract_gen_impl2(input: proc_macro2::TokenStream) -> Result<proc_macro2::To
let tokens = gen::codegen(&hir_contract);
Ok(tokens.into())
}
#[test]
fn empty_contract_input() {
use quote::quote;
assert!(contract_gen_impl2(quote!{}).is_err());
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment