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

11
LINES

< > BotCompany Repo | #1021959 // test_subList_sanity

JavaX fragment (include)

svoid test_subList_sanity() {
  L l = ll("a", "b");
  assertEquals(ll("a"), subList(l, 0, 1));
  assertEquals(ll("a"), subList(l, -1, 1));
  assertEquals(ll("b"), subList(l, 1));
  assertEquals(ll(), subList(l, 3));
  assertEquals(ll(), subList(l, 1, -1));
  
  subList(l, 1, 2).clear();
  assertEqualsVerbose(ll("a"), l);
}

Author comment

Began life as a copy of #1021958

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021959
Snippet name: test_subList_sanity
Eternal ID of this version: #1021959/3
Text MD5: 9f0b66381e6e620c6cc13464d88534d9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-07-24 03:01:42
Source code size: 334 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 253 / 280
Version history: 2 change(s)
Referenced in: [show references]