diff --git a/rust-tooling/generate/templates/default_test_template.tera b/rust-tooling/generate/templates/default_test_template.tera index 39eb4727f..94d4c88c8 100644 --- a/rust-tooling/generate/templates/default_test_template.tera +++ b/rust-tooling/generate/templates/default_test_template.tera @@ -1,3 +1,5 @@ +use {{ crate_name }}::*; + {% for test in cases %} #[test] {% if loop.index != 1 -%} @@ -5,7 +7,7 @@ {% endif -%} fn {{ test.description | slugify | replace(from="-", to="_") }}() { let input = {{ test.input | json_encode() }}; - let output = {{ crate_name }}::{{ fn_names[0] }}(input); + let output = {{ fn_names[0] }}(input); let expected = {{ test.expected | json_encode() }}; assert_eq!(output, expected); }