| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-05-01 20:58:23 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-05-01 20:58:23 +0200 |
| commit | 034153205de05ef2a4facf7aded9912ce8dfb6b5 (patch) | |
| tree | 963eaad7baedcea998e6a41b62e3cedd7d8c6ba9 /data/unit-testing/allocate_and_free.fate | |
| parent | a5ddb05e399929e778f501c864c894b32da3c354 (diff) | |
Suffixes imperative stuff with '!', adds ({set,list} ... ) shorthands.
Diffstat (limited to 'data/unit-testing/allocate_and_free.fate')
| -rw-r--r-- | data/unit-testing/allocate_and_free.fate | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/data/unit-testing/allocate_and_free.fate b/data/unit-testing/allocate_and_free.fate index 56c7d6b..cf05414 100644 --- a/data/unit-testing/allocate_and_free.fate +++ b/data/unit-testing/allocate_and_free.fate @@ -1,15 +1,16 @@ (fate_version 1) (local (ptr int) p0) -(allocate p0) -(set (at p0) 72) -(assert (= (at p0) 72) +(allocate! p0) +(set! (at p0) 72) + +(assert! (= (at p0) 72) [FAILED] Test 0 ) -(free (at p0)) +(free! (at p0)) [COMPLETED] -(end) +(end!) |


