mirror of
https://github.com/nushell/nushell.git
synced 2024-12-17 12:41:34 +01:00
Add test with TODO note
This commit is contained in:
parent
4dacfaa44a
commit
0fe525de87
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user