Skip to content
Snippets Groups Projects
Commit 1a27de19 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: test firstDot option

parent a35946ea
No related branches found
No related tags found
No related merge requests found
...@@ -711,6 +711,16 @@ def test_splitExt(): ...@@ -711,6 +711,16 @@ def test_splitExt():
print(filename, '==', (outbase, outext)) print(filename, '==', (outbase, outext))
assert fslpath.splitExt(filename, allowed) == (outbase, outext) assert fslpath.splitExt(filename, allowed) == (outbase, outext)
# firstDot=True
tests = [
('blah', ('blah', '')),
('blah.blah', ('blah', '.blah')),
('blah.one.two', ('blah', '.one.two')),
('blah.one.two.three', ('blah', '.one.two.three')),
]
for f, exp in tests:
assert fslpath.splitExt(f, firstDot=True) == exp
def test_getFileGroup_imageFiles_shouldPass(): def test_getFileGroup_imageFiles_shouldPass():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment