Skip to content

Commit

Permalink
adjusted jump to parent test
Browse files Browse the repository at this point in the history
  • Loading branch information
egurapha committed Jan 26, 2025
1 parent 26c05e8 commit 1039fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_navigation.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ teardown() {
cd ${SHUNPO_TEST_DIR}/1/2/3/4.2

# Check expected success and failures.
run sj 2 >/dev/null && assert_success
run sj 1 >/dev/null && assert_success
run sj -3 >/dev/null && assert_failure
run sj "b" >/dev/null && assert_failure

# Check that post-jump directories are correct.
sj 2 >/dev/null
assert_equal $(pwd) "${SHUNPO_TEST_DIR}/1/2"

sg 3 >/dev/null && sj 3 >/dev/null
assert_equal $(pwd) "${SHUNPO_TEST_DIR}"
sg 3 >/dev/null
assert_equal $(pwd) "${SHUNPO_TEST_DIR}/1/2/3"
}

0 comments on commit 1039fd9

Please sign in to comment.