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).

1  
svoid test_isValidFileName() {
2  
  assertFunctionValues isValidFileName(
3  
    "", false,
4  
    ".", false,
5  
    "..", false,
6  
    "a/b", false,
7  
    "\"", false,
8  
    "\\", false,
9  
    "abc", true,
10  
    "c:", false,
11  
    "<bla", false,
12  
    ">bla", false,
13  
    "this|that", false,
14  
    "test-1 2 3_4.html", true);
15  
}

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