Download Jar. Libraryless. Click here for Pure Java version (14692L/102K).
1 | !7 |
2 | |
3 | p {
|
4 | set allWebs_transientOnly; |
5 | ai_postTransientTriple_force.set(true); |
6 | |
7 | S id = aGlobalID(); |
8 | assertCollectionContents(ll(), printStruct(ai_invalidatedWebs())); |
9 | |
10 | // invalidate |
11 | Web web = ai_invalidateWebTransiently(id); |
12 | assertCollectionContents(ll(id), printStruct(ai_invalidatedWebs())); |
13 | |
14 | // invalidate again |
15 | Web web2 = ai_invalidateWebTransiently(id); |
16 | assertCollectionContents(ll(id), printStruct(ai_invalidatedWebs())); |
17 | |
18 | print("remove one");
|
19 | removeTransientWeb(web); |
20 | assertCollectionContents(ll(id), printStruct(ai_invalidatedWebs())); |
21 | |
22 | print("remove the other");
|
23 | removeTransientWeb(web2); |
24 | assertCollectionContents(ll(), printStruct(ai_invalidatedWebs())); |
25 | |
26 | print("OK");
|
27 | } |
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: | #1011419 |
| Snippet name: | Test ai_invalidatedWebs [OK] |
| Eternal ID of this version: | #1011419/6 |
| Text MD5: | 8010d6e1f68baf8af8f4de64b4acf09a |
| Transpilation MD5: | 720ad49305a2ecfcf6dcf4de2c09c951 |
| 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-10-29 01:57:48 |
| Source code size: | 748 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 725 / 1769 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |