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

18
LINES

< > BotCompany Repo | #1017246 // Assert firstLineFromFile closing file (OK)

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (6469L/46K).

1  
!7
2  
3  
static int count;
4  
5  
static <A> A _registerIOWrap(A wrapper, O wrapped) {
6  
  printStructs("_registerIOWrap", wrapper := className(wrapper), wrapped := className(wrapped));
7  
  ret wrapper;
8  
}
9  
10  
svoid _registerIO(O o, S path, bool opened) {
11  
  printStructs("_registerIO", "class" := className(o), +path, +opened);
12  
  count += opened ? 1 : -1;
13  
}
14  
15  
p-exp {
16  
  print(firstLineFromFile(speechRecognitionLog()));
17  
  assertEqualsVerbose(count, 0);
18  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017246
Snippet name: Assert firstLineFromFile closing file (OK)
Eternal ID of this version: #1017246/6
Text MD5: 40a1d555503efa1f18e2d9ed54add5ed
Transpilation MD5: aec3b23c8939b53ff5d5b6973f5c7ca6
Author: stefan
Category: javax / io
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-15 16:06:00
Source code size: 451 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 1311
Version history: 5 change(s)
Referenced in: [show references]