Libraryless. Click here for Pure Java version (5591L/36K).
1 | svoid test_wordTokReplacerRuleOnStarVars() { |
2 | assertEqualsVerbose(litciset("John is John"), applyWordTokRule(wordTokReplacerRuleOnStarVars("*a is *b", "a is a"), "John is whatever")); |
3 | WordTokRule rule = wordTokReplacerRuleOnStarVars("*a is *{b c}", "a is a"); |
4 | rule.debug = true; |
5 | printStruct("tokPat", rule.tokPat()); |
6 | assertEqualsVerbose(litciset("John is John"), applyWordTokRule(rule, "John is whatever")); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023761 |
Snippet name: | test_wordTokReplacerRuleOnStarVars - also with curly vars |
Eternal ID of this version: | #1023761/8 |
Text MD5: | 110cb83e261fa6b4321468b04eaa8608 |
Transpilation MD5: | 2dc7b8196de3d6d133bc10c823af3ee6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-08 19:40:16 |
Source code size: | 424 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 296 |
Version history: | 7 change(s) |
Referenced in: | [show references] |