Skip to content

Commit

Permalink
Add a test for ${TEST:-}
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 30, 2025
1 parent 929af3d commit 1c0da61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ async fn commands() {
.run()
.await;

TestBuilder::new()
.command(r#"TEST="1 2 " ; echo "${TEST:-}""#)
.assert_stdout("1 2 \n")
.run()
.await;

TestBuilder::new()
.command(r#""echo" "1""#)
.assert_stdout("1\n")
Expand Down

0 comments on commit 1c0da61

Please sign in to comment.