Skip to content

Commit

Permalink
yml -> yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
callum-oakley committed Jan 25, 2025
1 parent 171ab71 commit 2629f31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
File renamed without changes.
14 changes: 7 additions & 7 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn err(stderr: &str) -> Output {
#[test]
fn test() -> Result<()> {
let cargo_toml = include_str!("../Cargo.toml").replace("\r\n", "\n");
let publish_yml = include_str!("../.github/workflows/publish.yml").replace("\r\n", "\n");
let publish_yaml = include_str!("../.github/workflows/publish.yaml").replace("\r\n", "\n");

assert!(run(&[], "", [])?
.stderr
Expand Down Expand Up @@ -125,13 +125,13 @@ fn test() -> Result<()> {
assert_eq!(
run(
&["-y", "$.jobs['get-version']['runs-on']"],
&publish_yml,
&publish_yaml,
[]
)?,
ok("ubuntu-latest\n")
);

assert_eq!(run(&["-yY"], &publish_yml, [])?, ok(&publish_yml));
assert_eq!(run(&["-yY"], &publish_yaml, [])?, ok(&publish_yaml));

assert_eq!(
run(&["-t", "$.package.name"], &cargo_toml, [])?,
Expand All @@ -145,13 +145,13 @@ fn test() -> Result<()> {
assert_eq!(run(&["-T", "undefined"], "", [])?, ok("undefined\n"));

assert_eq!(
convert("-tY", &convert("-jT", &convert("-yJ", &publish_yml)?)?)?,
publish_yml
convert("-tY", &convert("-jT", &convert("-yJ", &publish_yaml)?)?)?,
publish_yaml
);

assert_eq!(
convert("-jY", &convert("-tJ", &convert("-yT", &publish_yml)?)?)?,
publish_yml
convert("-jY", &convert("-tJ", &convert("-yT", &publish_yaml)?)?)?,
publish_yaml
);

assert_eq!(
Expand Down

0 comments on commit 2629f31

Please sign in to comment.