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

5
LINES

< > BotCompany Repo | #1029350 // test_substring (OK)

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

Libraryless. Click here for Pure Java version (2494L/16K).

1  
svoid test_substring() {
2  
  assertEqualsVerbose(substring("abc", 2, 4), "c");
3  
  assertEqualsVerbose(substring("abc", -3, 1), "a");
4  
  assertEqualsVerbose(substring("abc", 2, 1), "");
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029350
Snippet name: test_substring (OK)
Eternal ID of this version: #1029350/2
Text MD5: b69ce3977202896850093625275ffe7a
Transpilation MD5: e73f825da3b991f3376ea251fcb62a3d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-01 22:43:24
Source code size: 186 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 266
Version history: 1 change(s)
Referenced in: [show references]