summaryrefslogtreecommitdiff
path: root/CC
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-05 16:27:27 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-06 14:37:16 +0100
commitee8a8d511fb5c8d0cbad8a5979759ce853e8d767 (patch)
treed9061a648fba7cffe3d6dd6b39f4543afd669d40 /CC
parent9e7f2b68357dc1fbd073244e5a242a8317c8207d (diff)
downloadrules-cc-ee8a8d511fb5c8d0cbad8a5979759ce853e8d767.tar.gz
Use quote and quasi-quote to simplify some expressions
Diffstat (limited to 'CC')
-rw-r--r--CC/test/EXPRESSIONS17
1 files changed, 7 insertions, 10 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS
index b42401b..18028f8 100644
--- a/CC/test/EXPRESSIONS
+++ b/CC/test/EXPRESSIONS
@@ -348,19 +348,16 @@
}
]
, [ "artifacts"
- , { "type": "map_union"
+ , { "type": "`"
, "$1":
- [ { "type": "singleton_map"
- , "key": "pwd"
- , "value": {"type": "BLOB", "data": "/summary"}
- }
- , {"type": "var", "name": "summary"}
- , { "type": "singleton_map"
- , "key": "work"
- , "value":
+ { "pwd":
+ {"type": ",", "$1": {"type": "BLOB", "data": "/summary"}}
+ , "work":
+ { "type": ","
+ , "$1":
{"type": "TREE", "$1": {"type": "var", "name": "attempts"}}
}
- ]
+ }
}
]
, [ "runfiles"