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

6
LINES

< > BotCompany Repo | #1023065 // test_capitalizeWord

JavaX fragment (include)

svoid test_capitalizeWord() {
  assertEqualsVerbose("us of AMERICA", capitalizeWord("us of america", "America"));
  
  // parts of words not affected
  assertEqualsVerbose("American citizen", capitalizeWord("American citizen", "America"));
}

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: #1023065
Snippet name: test_capitalizeWord
Eternal ID of this version: #1023065/1
Text MD5: 8c7e1fb5d6bd554c4d3157f8a8df4dd0
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-30 17:41:20
Source code size: 246 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 281
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)