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

6
LINES

< > BotCompany Repo | #1022905 // test_fileIsUnderAbsolutePath_linux

JavaX fragment (include)

svoid test_fileIsUnderAbsolutePath_linux() {
  assertTrueVerbose(fileIsUnderAbsolutePath(newFile("/home/bla/blubbi"), newFile("/home/bla")));
  assertTrueVerbose(fileIsUnderAbsolutePath(newFile("/home/bla/blubbi/2"), newFile("/home/bla")));
  assertFalseVerbose(fileIsUnderAbsolutePath(newFile("/home/blu/blubbi"), newFile("/home/bla")));
  assertFalseVerbose(fileIsUnderAbsolutePath(newFile("/home/bl2"), newFile("/home/bl")));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022905
Snippet name: test_fileIsUnderAbsolutePath_linux
Eternal ID of this version: #1022905/2
Text MD5: 8326886ec0df6bea95882de7b476d727
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 19:49:12
Source code size: 435 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 235 / 286
Version history: 1 change(s)
Referenced in: [show references]