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

18
LINES

< > BotCompany Repo | #1013119 // Test Cases for List Length

Document

1  
if i make a list of 3 elements and add one more
2  
  - how long is the new list?
3  
=> 4 elements
4  
5  
if i have a list of 10 elements - how long is it?
6  
=> 10 elements
7  
8  
if i have an empty list - how long is it?
9  
=> 0 elements
10  
11  
if i have an empty list and add 3 elements - how long is it then?
12  
=> 3 elements
13  
14  
if my list has 5 elements and I then add 3 elements - how long is it finally?
15  
=> 8 elements
16  
17  
if i have 3 elements and add 10 - how long is the list?
18  
=> 13 elements

download  show line numbers   

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

No comments. add comment

Snippet ID: #1013119
Snippet name: Test Cases for List Length
Eternal ID of this version: #1013119/4
Text MD5: 939d83ea47208ed8700405255176013d
Author: stefan
Category: javax / a.i.
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-25 22:42:47
Source code size: 477 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 446 / 327
Version history: 3 change(s)
Referenced in: [show references]