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

15
LINES

< > BotCompany Repo | #1027713 // test_isValidFileName (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2578L/16K).

svoid test_isValidFileName() {
  assertFunctionValues isValidFileName(
    "", false,
    ".", false,
    "..", false,
    "a/b", false,
    "\"", false,
    "\\", false,
    "abc", true,
    "c:", false,
    "<bla", false,
    ">bla", false,
    "this|that", false,
    "test-1 2 3_4.html", true);
}

Author comment

Began life as a copy of #1027711

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027713
Snippet name: test_isValidFileName (OK)
Eternal ID of this version: #1027713/3
Text MD5: f18eb0ac67c4c7df9f2a118040bf847a
Transpilation MD5: 8beb192c21ff0005bc7e50f15f0397fa
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-04 17:14:19
Source code size: 314 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 128 / 182
Version history: 2 change(s)
Referenced in: [show references]