Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-dir.lua4
-rw-r--r--tests/test-path.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-dir.lua b/tests/test-dir.lua
index 5ed4935..c747604 100644
--- a/tests/test-dir.lua
+++ b/tests/test-dir.lua
@@ -8,9 +8,9 @@ local pretty = require( "pl.pretty" )
local normpath = path.normpath
-local expected = {normpath "../docs/function_index.txt"}
+local expected = {normpath "../docs/config.ld"}
-local files = dir.getallfiles( normpath "../docs/", "*.txt" )
+local files = dir.getallfiles( normpath "../docs/", "*.ld" )
asserteq( files, expected )
diff --git a/tests/test-path.lua b/tests/test-path.lua
index 6f06d3b..5a232df 100644
--- a/tests/test-path.lua
+++ b/tests/test-path.lua
@@ -21,10 +21,10 @@ testpath [[alice]]
testpath [[/path-to\dog\]]
asserteq( path.isdir( "../docs" ), true )
-asserteq( path.isdir( "../docs/penlight.jpg" ), false )
+asserteq( path.isdir( "../docs/config.ld" ), false )
asserteq( path.isfile( "../docs" ), false )
-asserteq( path.isfile( "../docs/penlight.jpg" ), true )
+asserteq( path.isfile( "../docs/config.ld" ), true )
local norm = path.normpath
local p = norm '/a/b'