mirror of
https://github.com/google/go-jsonnet.git
synced 2026-05-05 12:06:11 +02:00
6 lines
220 B
Jsonnet
6 lines
220 B
Jsonnet
{
|
|
local input = [1,2,3],
|
|
local knownItems = [1,2],
|
|
local unknownItems = std.filter(function(i) !(i in knownItems), input),
|
|
assert unknownItems == [] : "unexpected items: %s" % std.join(",",unknownItems)
|
|
} |