Extract file extension: Difference between revisions
Content deleted Content added
→Task: Replace the test-cases with more realistic ones (that also catch more edge cases). This doesn't change the task requirements. |
make one test-case use a number and upper-case letter |
||
Line 17: | Line 17: | ||
* occurs at the very end of the filename |
* occurs at the very end of the filename |
||
* consists of a period, followed by one or more ASCII letters (A-Z, a-z |
* consists of a period, followed by one or more ASCII letters or digits (A-Z, a-z, 0-9) |
||
{{task heading|Test cases}} |
{{task heading|Test cases}} |
||
Line 26: | Line 26: | ||
! Output |
! Output |
||
! Comment |
! Comment |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|- |
|- |
||
| <code><nowiki>http://example.com/download.tar.gz</nowiki></code> |
| <code><nowiki>http://example.com/download.tar.gz</nowiki></code> |
||
| <code>.gz</code> |
| <code>.gz</code> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| |
| |
||
|- |
|- |