From f9633ebe55f3cf0a22abdf8d75da9f9487926afc Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 18 Oct 2019 09:53:44 -0700 Subject: [PATCH] Add (broken) import all test --- schala-lang/language/src/eval/test.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/schala-lang/language/src/eval/test.rs b/schala-lang/language/src/eval/test.rs index 5d18933..9a8306b 100644 --- a/schala-lang/language/src/eval/test.rs +++ b/schala-lang/language/src/eval/test.rs @@ -258,3 +258,12 @@ milta()(10) "#; test_in_fresh_env!(source, "43"); } + +#[test] +fn import_all() { + let source = r#" +type Option = Some(T) | None +import Option::* +let x = Some(9); if x is Some(q) then { q } else { 0 }"#; + test_in_fresh_env!(source, "9"); +}