Libraryless. Click here for Pure Java version (2791L/18K).
1 | svoid test_html_evaluateIfTags() { |
2 | S html = "test <if $bla>yes<else>no</if> test"; |
3 | assertEqualsVerbose("test yes test", html_evaluateIfTags(html, s -> true)); |
4 | assertEqualsVerbose("test no test", html_evaluateIfTags(html, s -> false); |
5 | html = "test <if $bla>yes</if> test"; |
6 | assertEqualsVerbose("test yes test", html_evaluateIfTags(html, s -> true)); |
7 | assertEqualsVerbose("test test", html_evaluateIfTags(html, s -> false); |
8 | } |
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: | 211 / 289 |
Version history: | 4 change(s) |
Referenced in: | [show references] |