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

12
LINES

< > BotCompany Repo | #1009169 // Test getTag [WORKS]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1207L/9K/29K).

1  
!7
2  
3  
p {
4  
  assertEqualsVerbose("bla", getTag("<bla>"));
5  
  assertEqualsVerbose("bla", getTag("<bla"));
6  
  assertEqualsVerbose("bla", getTag("<bla blabla=\"ja\">"));
7  
  assertEqualsVerbose("/blu", getTag("</blu>"));
8  
  assertEqualsVerbose("a:b:c", getTag("<a:b:c>"));
9  
  assertEqualsVerbose("a:b:c:d", getTag("<a:b:c:d ja>"));
10  
  assertEqualsVerbose("simple", getTag("<simple/>"));
11  
  print("ok");
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009169
Snippet name: Test getTag [WORKS]
Eternal ID of this version: #1009169/3
Text MD5: 70b7da6dbd8104e3ac96f627ab575fda
Transpilation MD5: bf5fc183049d58f87970480def0db0fd
Author: stefan
Category: javax / html
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-12 13:19:34
Source code size: 401 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 407 / 521
Version history: 2 change(s)
Referenced in: [show references]