Skip to content

Commit

Permalink
fix: test paths and ABC test
Browse files Browse the repository at this point in the history
Tests can now be ran no matter where you are located
ABC test should no longer cause an issue when ran in another repository

---

* Closes #10

---
  • Loading branch information
AksharP5 committed Mar 14, 2024
1 parent 277f6e6 commit 100210f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ABC/tests/bear-fuzzy-wuzzy/ABC.expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


2 matches:
bear(wuzzy)
bear(fuzzy)
bear(wuzzy)

4 changes: 4 additions & 0 deletions bin/test.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env bash

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT_ROOT="$( cd "${SCRIPT_DIR}/.." &> /dev/null && pwd )"
cd "${PROJECT_ROOT}"

bats --recursive .

0 comments on commit 100210f

Please sign in to comment.