Skip to content

Commit facc5e0

Browse files
committed
tests
1 parent 78f8b46 commit facc5e0

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/check-lines.yml renamed to .github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Run check-lines.sh script
20-
run: ./tests/check-lines.sh
20+
run: ./tests/check-test-data-tabs.sh

tests/check-lines.sh

-11
This file was deleted.

tests/check-test-data-tabs.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Ensure every line has the same number of tabs
4+
5+
HISTOGRAM=$(cat TEST-DATA.tsv | tr -cd '\t\n' | tr '\t' '.' | sed '${/^$/d;}' | sort | uniq -c)
6+
echo $HISTOGRAM
7+
8+
if [ $(echo $HISTOGRAM | wc -w) -eq 2 ]; then
9+
echo "✅ All lines have the same number of tabs"
10+
else
11+
echo "❌ Not all lines have the same number of tabs"
12+
exit 1
13+
fi

0 commit comments

Comments
 (0)