From ac88483ccce4379110db2eb5dcdaff6555651697 Mon Sep 17 00:00:00 2001 From: Sam Surtees Date: Thu, 3 Nov 2016 21:22:42 +1000 Subject: [PATCH] Added a test dot file instead of relying on .gitignore to be shipped Fixes #595 --- tests/base/.testDotFile | 1 + tests/base/test_os.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/base/.testDotFile diff --git a/tests/base/.testDotFile b/tests/base/.testDotFile new file mode 100644 index 00000000..b9928548 --- /dev/null +++ b/tests/base/.testDotFile @@ -0,0 +1 @@ +This is a test file for os.matchfiles tests. diff --git a/tests/base/test_os.lua b/tests/base/test_os.lua index 50e628f0..7b154746 100644 --- a/tests/base/test_os.lua +++ b/tests/base/test_os.lua @@ -105,8 +105,8 @@ end function suite.matchfiles_OnDottedFile() - local result = os.matchfiles("../.*") - test.istrue(table.contains(result, "../.gitignore")) + local result = os.matchfiles("base/.*") + test.istrue(table.contains(result, "base/.testDotFile")) end function suite.matchfiles_onComboSearch()