mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00:00
6951fb440c
* Remove it-expansion, take 2 * Cleanup * silly update to test CI
25 lines
435 B
Rust
25 lines
435 B
Rust
use nu_test_support::{nu, pipeline};
|
|
|
|
#[test]
|
|
fn into_int_filesize() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
into-int 1kb | each {= $it / 1024 }
|
|
"#
|
|
));
|
|
|
|
assert!(actual.out.contains('1'));
|
|
}
|
|
|
|
#[test]
|
|
fn into_int_int() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
into-int 1024 | each {= $it / 1024 }
|
|
"#
|
|
));
|
|
|
|
assert!(actual.out.contains('1'));
|
|
}
|