mirror of
https://github.com/nushell/nushell.git
synced 2024-12-01 12:54:16 +01:00
03667bdf8c
# Description Fixes #12423 where changes to mutable variables are not properly persisted after a REPL entry.
10 lines
230 B
Rust
10 lines
230 B
Rust
use nu_test_support::{nu, nu_repl_code};
|
|
use pretty_assertions::assert_eq;
|
|
|
|
#[test]
|
|
fn mut_variable() {
|
|
let lines = &["mut x = 0", "$x = 1", "$x"];
|
|
let actual = nu!(nu_repl_code(lines));
|
|
assert_eq!(actual.out, "1");
|
|
}
|