1 | svoid test_CodeSafetyChecker() {
|
2 | new CodeSafetyChecker checker; |
3 | checker.markSafe("iAmSafe");
|
4 | testFunctionValues(code -> checker.checkCode(code/S), |
5 | "grkigrgo()", "?", |
6 | [[reversed("abc")]], "safe",
|
7 | "iAmSafe()", "safe", |
8 | "jTextField()", "awt", |
9 | [["\*jTextField()*/"]], "awt", // test in-string-evals |
10 | ); |
11 | |
12 | testFunctionValues(code -> checker.verbalCheckResult(code/S), |
13 | "grkigrgo()", "?. Unknown identifiers: grkigrgo", |
14 | ); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030038 |
| Snippet name: | test_CodeSafetyChecker [OK] |
| Eternal ID of this version: | #1030038/9 |
| Text MD5: | 6b98ab93665ead851e71c2372018b0eb |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-13 11:59:05 |
| Source code size: | 466 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 432 / 494 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |