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

8
LINES

< > BotCompany Repo | #1018709 // Test dropExtension

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

Download Jar. Libraryless. Click here for Pure Java version (5811L/41K).

1  
!7
2  
3  
p-exp {
4  
  assertEqualsVerbose(userDir("bla"), dropExtension(userDir("bla"));
5  
  assertEqualsVerbose(userDir("bla"), dropExtension(userDir("bla.x"));
6  
  assertEqualsVerbose(userDir("blubb.x"), dropExtension(userDir("blubb.x.y"));
7  
  assertEqualsVerbose(new File("bla"), dropExtension(new File("bla.x"));
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018709
Snippet name: Test dropExtension
Eternal ID of this version: #1018709/2
Text MD5: 34b6ee488d1ff8a563a4640775be30cb
Transpilation MD5: 870b7f0c256929dc887fab98e831d480
Author: stefan
Category: javax / io
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-11 17:14:38
Source code size: 312 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 431 / 970
Version history: 1 change(s)
Referenced in: [show references]