svoid test_PhilosophyBot1_sanitizeInput() { new PhilosophyBot1 bot; assertEqualsVerbose("what is", bot.sanitizeInput("what is $x")); assertEqualsVerbose("what is this", bot.sanitizeInput("what is (this")); assertEqualsVerbose("what is this", bot.sanitizeInput("what is (this")); assertEqualsVerbose("i don't understand", bot.sanitizeInput("i don't understand")); assertEqualsVerbose("quoted 1", bot.sanitizeInput("\"quoted\" 1")); // these seem OK for javaTokWithBrackets assertEqualsVerbose("a'", bot.sanitizeInput("a'")); assertEqualsVerbose("'a'", bot.sanitizeInput("'a'")); }
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: | #1025783 |
Snippet name: | test_PhilosophyBot1_sanitizeInput (OK) |
Eternal ID of this version: | #1025783/5 |
Text MD5: | e6334f2c831398fa946ae4b5b0b8b7a0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-19 19:34:50 |
Source code size: | 611 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 186 / 214 |
Version history: | 4 change(s) |
Referenced in: | [show references] |