diff --git a/tests/base/test_os.lua b/tests/base/test_os.lua index a73a38eb..c774084d 100644 --- a/tests/base/test_os.lua +++ b/tests/base/test_os.lua @@ -109,6 +109,10 @@ test.istrue(table.contains(result, "../.gitignore")) end + function suite.matchfiles_onComboSearch() + local result = os.matchfiles("folder/**/*.txt") + test.istrue(table.contains(result, "folder/subfolder/hello.txt")) + end -- diff --git a/tests/folder/subfolder/hello.txt b/tests/folder/subfolder/hello.txt new file mode 100644 index 00000000..137d409d --- /dev/null +++ b/tests/folder/subfolder/hello.txt @@ -0,0 +1 @@ +Hi there!