Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Python new test framework should be used (Refer this for more detail)
The edge case handling is not explained.
Your requirement has the wrong premise in the first place: the extension of a file is always the last part of a file name, never all the parts after the dot.
.tar.gz
simply means it's a g-zipped file (.gz
) which has a tar file (.tar
), so its extension is.gz
, not.tar.gz
. Similarly,innocent_file.txt.exe
has an extension of.exe
, not.txt.exe
.It probably needs test for paths without extension. Something like