Download Jar. Libraryless. Click here for Pure Java version (880L/6K).
1 | !7 |
2 | |
3 | p { |
4 | assertFalse(isProperFileName("")); |
5 | assertFalse(isProperFileName(".")); |
6 | assertFalse(isProperFileName("..")); |
7 | assertFalse(isProperFileName("/")); |
8 | assertFalse(isProperFileName("a/")); |
9 | assertFalse(isProperFileName(".a")); |
10 | assertTrue(isProperFileName("a.")); |
11 | assertFalse(isProperFileName("c:")); |
12 | assertFalse(isProperFileName("\\")); |
13 | assertTrue(isProperFileName("webs-made.txt.part1.gz")); |
14 | assertTrue(isProperFileName("CAPITAL")); |
15 | print("OK"); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011856 |
Snippet name: | Test isProperFileName |
Eternal ID of this version: | #1011856/3 |
Text MD5: | 91be6d14881dbdcf0b71b93d70fdd0f7 |
Transpilation MD5: | 81b944208083d111a93a457ff221bae3 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-08 03:36:37 |
Source code size: | 486 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 542 / 1149 |
Version history: | 2 change(s) |
Referenced in: | [show references] |