replace doAssert false with raiseAssert in lib, which works better with strictdefs (#22458)

This commit is contained in:
ringabout
2023-08-12 00:24:46 +08:00
committed by GitHub
parent 48da472dd2
commit 3f7e1d7daa
22 changed files with 34 additions and 34 deletions

View File

@@ -48,7 +48,7 @@ proc splitTestFile*(file: string): tuple[cat: string, path: string] =
else:
result.path = file
return result
doAssert false, "file must match this pattern: '/pathto/tests/dir/**/tfile.nim', got: '" & file & "'"
raiseAssert "file must match this pattern: '/pathto/tests/dir/**/tfile.nim', got: '" & file & "'"
static:
# sanity check