Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Jan 22, 2024
1 parent 16a6c52 commit f147f70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ GXADMIN=./.tmpgxadmin
fi
[ "$result" -eq 0 ]
}

@test "Ensure query names are standardised and match [type]_q-u-e-r-y" {
result=$(grep -P '^[a-z]+_[a-z-]*_[a-z-_]*\(\)' ${GXADMIN} -c)
if (( result > 20 )); then
grep -P '^[a-z]+_[a-z-]*_[a-z-_]*\(\)' parts/2*
fi
[ "$result" -eq 20 ]
}

0 comments on commit f147f70

Please sign in to comment.