We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a85ddd commit 404145eCopy full SHA for 404145e
clojure/src/test/resources/cucumber/runtime/clojure/tables.feature
@@ -0,0 +1,22 @@
1
+Feature: tables
2
+
3
+ Scenario: a key-value table
4
+ Given I have a kv table:
5
+ | my-first-key | 1 |
6
+ | another-key | "a string" |
7
+ | yak | :a-kw |
8
+ Then the clojure literal equivalent should be:
9
+ """
10
+ {:my-first-key 1, :another-key "a string", :yak :a-kw}
11
12
13
+ Scenario: a table
14
+ Given I have a table with its keys in a header row:
15
+ | id | name | created-at |
16
+ | 55 | "foo" | 1293884100000 |
17
+ | 56 | "bar" | 1293884100000 |
18
19
20
+ [{:id 55, :name "foo", :created-at 1293884100000}
21
+ {:id 56, :name "bar", :created-at 1293884100000}]
22
0 commit comments