Skip to content

Commit

Permalink
typeset: Scripted tests
Browse files Browse the repository at this point in the history
This commit imports the tests for the typeset built-in from the yash
test suite and modifies them to match with the behavior of our typeset
built-in. The tests are based on:
https://github.com/magicant/yash/blob/6a60fd9747d0170c396322e9466734e7c6567b54/tests/typeset-y.tst
  • Loading branch information
magicant committed Nov 12, 2023
1 parent 3c860df commit d71bfad
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yash/tests/scripted_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ fn tilde_expansion() {
run("tilde-p.sh")
}

#[test]
fn typeset_builtin() {
run("typeset-y.sh")
}

#[test]
fn unset_builtin() {
run("unset-p.sh")
Expand Down
Loading

0 comments on commit d71bfad

Please sign in to comment.