| Contract | <active_value /> |
| Tests More... | <defclass boat weight=100
total_weight=<active_value>
_subject.weight.<plus 1/>
</>
/>
<set my_boat=<boat weight=127/> />
my_boat.total_weight
result=128<defclass boat weight=100 total_weight=111/>
<set my_boat=<boat weight=127/> />
my_boat.<set total_weight=<active_value>
_subject.weight.<plus 100/>
</>
/>
my_boat.total_weight
result=227 |
thing.<set test_av=
<thing head_weight=200
tail_weight=300
weight=<active_value> thing.test_av.head_weight.<plus thing.test_av.tail_weight/>
</active_value>
/> />
thing.test_av.head_weight
result=200thing.test_av.tail_weight
result=300thing.test_av.weight
result=500thing.test_av.<set head_weight=222/>
thing.test_av.weight
result=522thing.test_av.<set orig=27/> thing.test_av.origresult=
27thing.test_av.<set clone=<active_value> thing.test_av.orig</active_value> /> thing.test_av.cloneresult=
27thing.test_av.<set orig=28/> thing.test_av.origresult=
28thing.test_av.clone
result=28<defclass boat hull_weight=10 sail_weight=20
total_weight=<active_value>
_subject.hull_weight.<plus _subject.sail_weight/>
</active_value>
/>
<boat sail_weight=40/>.total_weight
result=50