Add test with TODO note

This commit is contained in:
Jakub Žádník 2021-10-04 20:16:43 +03:00
parent 4dacfaa44a
commit 0fe525de87

View File

@ -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")