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

!7

static int count;

static <A> A _registerIOWrap(A wrapper, O wrapped) {
  printStructs("_registerIOWrap", wrapper := className(wrapper), wrapped := className(wrapped));
  ret wrapper;
}

svoid _registerIO(O o, S path, bool opened) {
  printStructs("_registerIO", "class" := className(o), +path, +opened);
  count += opened ? 1 : -1;
}

p-exp {
  print(firstLineFromFile(speechRecognitionLog()));
  assertEqualsVerbose(count, 0);
}

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: 502 / 1305
Version history: 5 change(s)
Referenced in: [show references]