Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Sep 24, 2024
1 parent 78f8b46 commit facc5e0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run check-lines.sh script
run: ./tests/check-lines.sh
run: ./tests/check-test-data-tabs.sh
11 changes: 0 additions & 11 deletions tests/check-lines.sh

This file was deleted.

13 changes: 13 additions & 0 deletions tests/check-test-data-tabs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Ensure every line has the same number of tabs

HISTOGRAM=$(cat TEST-DATA.tsv | tr -cd '\t\n' | tr '\t' '.' | sed '${/^$/d;}' | sort | uniq -c)
echo $HISTOGRAM

if [ $(echo $HISTOGRAM | wc -w) -eq 2 ]; then
echo "✅ All lines have the same number of tabs"
else
echo "❌ Not all lines have the same number of tabs"
exit 1
fi

0 comments on commit facc5e0

Please sign in to comment.