Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1011856 // Test isProperFileName

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (880L/6K).

!7

p {
  assertFalse(isProperFileName(""));
  assertFalse(isProperFileName("."));
  assertFalse(isProperFileName(".."));
  assertFalse(isProperFileName("/"));
  assertFalse(isProperFileName("a/"));
  assertFalse(isProperFileName(".a"));
  assertTrue(isProperFileName("a."));
  assertFalse(isProperFileName("c:"));
  assertFalse(isProperFileName("\\"));
  assertTrue(isProperFileName("webs-made.txt.part1.gz"));
  assertTrue(isProperFileName("CAPITAL"));
  print("OK");
}

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: 539 / 1141
Version history: 2 change(s)
Referenced in: [show references]