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

8
LINES

< > BotCompany Repo | #1030436 // test_html_evaluateIfTags (OK)

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

Libraryless. Click here for Pure Java version (2791L/18K).

svoid test_html_evaluateIfTags() {
  S html = "test <if $bla>yes<else>no</if> test";
  assertEqualsVerbose("test yes test", html_evaluateIfTags(html, s -> true));
  assertEqualsVerbose("test no test", html_evaluateIfTags(html, s -> false);
  html = "test <if $bla>yes</if> test";
  assertEqualsVerbose("test yes test", html_evaluateIfTags(html, s -> true));
  assertEqualsVerbose("test  test", html_evaluateIfTags(html, s -> false);  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030436
Snippet name: test_html_evaluateIfTags (OK)
Eternal ID of this version: #1030436/5
Text MD5: bcb166e96aaec643ce1196362c5a4044
Transpilation MD5: 15249cc4668362e5b39fe8bebf5b1301
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-16 23:33:31
Source code size: 445 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 193
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)