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

6
LINES

< > BotCompany Repo | #1023065 // test_capitalizeWord

JavaX fragment (include)

1  
svoid test_capitalizeWord() {
2  
  assertEqualsVerbose("us of AMERICA", capitalizeWord("us of america", "America"));
3  
  
4  
  // parts of words not affected
5  
  assertEqualsVerbose("American citizen", capitalizeWord("American citizen", "America"));
6  
}

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: 244 / 283
Referenced in: [show references]