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

7
LINES

< > BotCompany Repo | #1036284 // test_SynchronizedLongBufferStoredAsLinearInts (OK)

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

Libraryless. Click here for Pure Java version (9911L/55K).

svoid test_SynchronizedLongBufferStoredAsLinearInts() {
  var buf = new SynchronizedLongBufferStoredAsLinearInts(100, 10);
  buf.add(105);
  buf.addAll(ll(110L, 130L));
  assertEquals(110L, buf.get(0));
  assertEquals(ll(110L, 110L, 130L), buf.asVirtualList());
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036284
Snippet name: test_SynchronizedLongBufferStoredAsLinearInts (OK)
Eternal ID of this version: #1036284/4
Text MD5: c8e2ee6c85e666cc6904c93554de8a1c
Transpilation MD5: e7a2ccdbe0ddada06b1d4a72838c4a4e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-08 13:58:11
Source code size: 269 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 63 / 103
Version history: 3 change(s)
Referenced in: [show references]