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

6
LINES

< > BotCompany Repo | #1026633 // test_indexOfBytesInFile

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

Libraryless. Click here for Pure Java version (2596L/17K).

1  
svoid test_indexOfBytesInFile() {
2  
  File f = createTempFile();
3  
  saveTextFile(f, "bla bla bla blubb bla");
4  
  assertEqualsVerbose(12L, indexOfUTF8StringInFile(f, "blubb"));
5  
  assertEqualsVerbose(-1L, indexOfUTF8StringInFile(f, "blabb"));
6  
}

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: #1026633
Snippet name: test_indexOfBytesInFile
Eternal ID of this version: #1026633/3
Text MD5: bf058cbffb9becef92f79f6d5b9a4c0d
Transpilation MD5: d8cd4e409752d5df87185394665a5af3
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-16 22:32:45
Source code size: 243 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 252
Version history: 2 change(s)
Referenced in: [show references]