From 0fe525de872d4622a0b7d9c8ed66f9b986e95c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Mon, 4 Oct 2021 20:16:43 +0300 Subject: [PATCH] Add test with TODO note --- src/tests.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index db8fde4bd..173c2f7ba 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -489,6 +489,15 @@ fn def_twice_should_fail() -> TestResult { ) } +// TODO: This test fails if executed each command on a separate line in REPL +#[test] +fn use_import_after_hide() -> TestResult { + run_test( + r#"module spam { export def foo [] { "foo" } }; use spam.foo; hide foo; use spam.foo; foo"#, + "foo" + ) +} + #[test] fn from_json_1() -> TestResult { run_test(r#"('{"name": "Fred"}' | from json).name"#, "Fred")