mirror of
https://github.com/nushell/nushell
synced 2025-01-03 16:58:58 +00:00
8 lines
147 B
Rust
8 lines
147 B
Rust
|
use nu_test_support::nu;
|
||
|
|
||
|
#[test]
|
||
|
fn const_abs() {
|
||
|
let actual = nu!("const ABS = -5.5 | math abs; $ABS");
|
||
|
assert_eq!(actual.out, "5.5");
|
||
|
}
|