Skip to content

Commit d3da796

Browse files
committed
Added some info to the assertions.
1 parent 295ec93 commit d3da796

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testdata/test_api.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ function TestTempDir(t)
77
t:Run('createTmpDir', function(t)
88
tempDir = t:TempDir()
99
stat = goos.stat(tempDir)
10-
assert(stat)
11-
assert(stat.is_dir)
10+
assert(stat, tempDir .. " does not exist")
11+
assert(stat.is_dir, tempDir .. " is not a dir")
1212
end)
1313
assert(tempDir ~= '', tempDir)
14-
assert(not goos.stat(tempDir))
14+
assert(not goos.stat(tempDir), tempDir .. " exists after the subtest completes")
1515
end

0 commit comments

Comments
 (0)