Download Jar. Libraryless. Click here for Pure Java version (5362L/38K).
!7 set flag NoHTML. // tt p-exp { new NotifyingStringBuffer buf; final Var<Int> count = new(0); buf.onChange = ll(r { incIntVar(count) }); assertEquals(0L, buf.changes); buf.append("yo"); assertEquals(1L, buf.changes); buf.append(' '); buf.append("what"); assertEquals(3L, buf.changes); assertEquals(3, count!); assertEqualsVerbose("yo what", str(buf)); buf.setLength(2); assertEquals(4, count!); assertEqualsVerbose("yo", str(buf)); }
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019847 |
Snippet name: | Test NotifyingStringBuffer [OK] |
Eternal ID of this version: | #1019847/11 |
Text MD5: | 7879a860bd93e7b09c6e415ed903fe8c |
Transpilation MD5: | 95e9e9ef7d301aa0c7e70d538149ae2e |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-28 21:13:12 |
Source code size: | 492 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 974 |
Version history: | 10 change(s) |
Referenced in: | [show references] |