Add unit test to count to_world instances (#9694)

* Add unit test to count to_world instances

* Update the macro count and change macros to use -eq aswell

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2020-08-21 14:50:45 +02:00
committed by GitHub
co-authored by Werner
parent dad3770f55
commit c17f7791d2
+4 -2
View File
@@ -6,7 +6,8 @@ env:
global:
BYOND_MAJOR="513"
BYOND_MINOR="1517"
MACRO_COUNT=77
MACRO_COUNT=0
TO_WORLD_COUNT=223
FLYWAY_BUILD="5.2.4"
NODE_VERSION=10
RUST_G_VERSION="0.4.2a"
@@ -86,7 +87,8 @@ jobs:
- (cd vueui && (npm run lint | tee lint.log))
- grep "No lint errors found!" vueui/lint.log
- (cd vueui && npm run build)
- (num=`grep -E '\\\\(red|blue|green|black|b|i[^mc])' **/*.dm | wc -l`; echo "$num escapes (expecting ${MACRO_COUNT} or less)"; [ $num -le ${MACRO_COUNT} ])
- (num=`grep -E '\\\\(red|blue|green|black|b|i[^mc])' **/*.dm | wc -l`; echo "$num escapes (expecting ${MACRO_COUNT} or less)"; [ $num -eq ${MACRO_COUNT} ])
- (num=`grep -r --include \*.dm -oh to_world\( . | wc -w`; echo "$num to_worlds (expecting ${TO_WORLD_COUNT})"; [ $num -eq ${TO_WORLD_COUNT} ])
- awk -f tools/indentation.awk **/*.dm
- md5sum -c - <<< "60a49502d9f6dfdcc255deb98c901b72 *html/changelogs/example.yml"
- python3 tools/TagMatcher/tag-matcher.py ../..