File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ MMTEST
3+ {
4+ name = nodeHas
5+ MODULE
6+ {
7+ name = module1
8+ }
9+ MODULE
10+ {
11+ name = module2
12+ key = firstCopy
13+ value = 5
14+ }
15+ MODULE
16+ {
17+ name = module2
18+ key = secondCopy
19+ value = 2
20+ }
21+ }
22+
23+ // Adds value to module2
24+ @MMTEST[nodeHas]
25+ {
26+
27+ @MODULE[module2]:HAS[# key[secondCopy]]
28+ {
29+ addTo = secondCopy
30+ }
31+
32+ @MODULE:HAS[# value[<5]]
33+ {
34+ addTo = secondCopy.value
35+ }
36+
37+ @MODULE:HAS[# value[>1]]
38+ {
39+ addTo = firstCopy.secondCopy
40+ }
41+ }
42+
43+ MMTEST_EXPECT
44+ {
45+ MMTEST
46+ {
47+ name = nodeHas
48+ MODULE
49+ {
50+ name = module1
51+ }
52+ MODULE
53+ {
54+ name = module2
55+ key = firstCopy
56+ value = 5
57+ addTo = firstCopy.secondCopy
58+ }
59+ MODULE
60+ {
61+ name = module2
62+ key = secondCopy
63+ value = 2
64+ addTo = secondCopy
65+ addTo = secondCopy.value
66+ addTo = firstCopy.secondCopy
67+ }
68+ }
69+ }
You can’t perform that action at this time.
0 commit comments