Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
20971f93
Unverified
Commit
20971f93
authored
Mar 14, 2019
by
Robin Freyler
Browse files
[lang] Add an initial POC empty contract input test
parent
145d889f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lang/src/lib.rs
View file @
20971f93
...
...
@@ -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
());
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment