Uses 1113K of libraries. Click here for Pure Java version (7584L/40K).
1 | !7 |
2 | |
3 | set flag ExternalMutex_debug. |
4 | |
5 | cm > DynTestModule { |
6 | void test { |
7 | testExternalMetaMutexAndConvertObjectMetaToMap(); |
8 | testMetaMapPut(); |
9 | } |
10 | |
11 | void testExternalMetaMutexAndConvertObjectMetaToMap { |
12 | new MetaWithExternalMutex o; |
13 | print(meta := toStringWithIdentity(o._getMeta())); |
14 | |
15 | convertObjectMetaToMap(o); |
16 | print(meta := toStringWithIdentity(o._getMeta())); |
17 | convertObjectMetaToMap(o); |
18 | print(meta := toStringWithIdentity(o._getMeta())); |
19 | } |
20 | |
21 | void testMetaMapPut { |
22 | new Meta o; |
23 | print(meta := toStringWithIdentity(o._getMeta())); |
24 | metaMapPut(o, hello := "World"); |
25 | print(meta := toStringWithIdentity(o._getMeta())); |
26 | metaMapPut(o, hello := null); |
27 | metaMapPut(o, null := "hello"); |
28 | // we assume meta never reverts to null (makes metaMapPut a lot faster) |
29 | print(meta := toStringWithIdentity(assertNotNull(o._getMeta()))); |
30 | } |
31 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031854 |
Snippet name: | Meta Map Test |
Eternal ID of this version: | #1031854/3 |
Text MD5: | f60f6586883ca7cd981b7dd0677cee01 |
Transpilation MD5: | f24d277f57be9f377fa2537b84b5f67d |
Author: | stefan |
Category: | javax / reasoning |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-16 06:18:10 |
Source code size: | 923 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 207 |
Version history: | 2 change(s) |
Referenced in: | [show references] |