Inc refactoring. More tests.

This commit is contained in:
Andrés N. Robalino
2019-08-10 03:54:49 -05:00
parent 5bfa2cc4b8
commit cb4b2e6116
3 changed files with 379 additions and 64 deletions

View File

@ -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!(