diff options
Diffstat (limited to 'spec/inputs/test/table_spreading_spec.yue')
-rw-r--r-- | spec/inputs/test/table_spreading_spec.yue | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/inputs/test/table_spreading_spec.yue b/spec/inputs/test/table_spreading_spec.yue new file mode 100644 index 0000000..e7942cc --- /dev/null +++ b/spec/inputs/test/table_spreading_spec.yue | |||
@@ -0,0 +1,22 @@ | |||
1 | describe "table spreading", -> | ||
2 | it "list and dict", -> | ||
3 | template = { | ||
4 | foo: "Hello" | ||
5 | bar: "World" | ||
6 | "!" | ||
7 | } | ||
8 | |||
9 | specialized = { | ||
10 | "a", "b", "c" | ||
11 | ...template | ||
12 | bar: "Bob" | ||
13 | } | ||
14 | |||
15 | assert.same specialized, { | ||
16 | "a" | ||
17 | "b" | ||
18 | "c" | ||
19 | "!" | ||
20 | foo: "Hello" | ||
21 | bar: "Bob" | ||
22 | } | ||