mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 10:21:04 +02:00
Inc refactoring. More tests.
This commit is contained in:
@ -112,28 +112,6 @@ fn str_converts_to_int() {
|
||||
assert_eq!(output, "2509000000");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn can_inc_version() {
|
||||
nu!(
|
||||
output,
|
||||
cwd("tests/fixtures/formats"),
|
||||
"open cargo_sample.toml | inc package.version --minor | get package.version | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(output, "0.2.0");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn can_inc_field() {
|
||||
nu!(
|
||||
output,
|
||||
cwd("tests/fixtures/formats"),
|
||||
"open cargo_sample.toml | inc package.edition | get package.edition | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(output, "2019");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn can_sum() {
|
||||
nu!(
|
||||
|
Reference in New Issue
Block a user