Download Jar. Libraryless. Click here for Pure Java version (19722L/140K).
1 | !7 |
2 | |
3 | unset flag SymbolAsString. |
4 | |
5 | p {
|
6 | ai_alternativeSmartBot(); |
7 | ai_useThoughtSpaces(true); |
8 | |
9 | ActualThoughtSpace myTS = new ActualThoughtSpace(currentThoughtSpace()); |
10 | thoughtSpace(myTS); |
11 | |
12 | myTS.blockedA = litciset(symbol("Haskell"));
|
13 | assertContainsIC(print(ai_texts("Java", "is", "$X")), symbol("a programming language"));
|
14 | |
15 | bench 10000 {
|
16 | myTS.blockedA.add(symbol("Java"));
|
17 | assertDoesntContainIC(ai_texts("Java", "is", "$X"), symbol("a programming language"));
|
18 | |
19 | myTS.blockedA.remove(symbol("Java"));
|
20 | assertContainsIC(ai_texts("Java", "is", "$X"), symbol("a programming language"));
|
21 | } |
22 | |
23 | print("OK");
|
24 | } |
Began life as a copy of #1012677
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012716 |
| Snippet name: | Test Thought Blocking v3 (with symbols, OK) |
| Eternal ID of this version: | #1012716/7 |
| Text MD5: | 73214c8f284067cd15ee4724db918144 |
| Transpilation MD5: | 41f345bccbc1e5da4e1e0a975c046245 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-10 22:06:55 |
| Source code size: | 658 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 772 / 1734 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |