1 | svoid test_PhilosophyBot1_sanitizeInput() { |
2 | new PhilosophyBot1 bot; |
3 | assertEqualsVerbose("what is", bot.sanitizeInput("what is $x")); |
4 | assertEqualsVerbose("what is this", bot.sanitizeInput("what is (this")); |
5 | assertEqualsVerbose("what is this", bot.sanitizeInput("what is (this")); |
6 | assertEqualsVerbose("i don't understand", bot.sanitizeInput("i don't understand")); |
7 | assertEqualsVerbose("quoted 1", bot.sanitizeInput("\"quoted\" 1")); |
8 | |
9 | // these seem OK for javaTokWithBrackets |
10 | assertEqualsVerbose("a'", bot.sanitizeInput("a'")); |
11 | assertEqualsVerbose("'a'", bot.sanitizeInput("'a'")); |
12 | } |
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: | 187 / 216 |
Version history: | 4 change(s) |
Referenced in: | [show references] |