Skip to content

Commit 3b320c9

Browse files
Clean up function example argument quoting (#66)
1 parent f615795 commit 3b320c9

18 files changed

+72
-72
lines changed

functions/abs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ examples:
128128
args: ['array[1]']
129129
returns: 3
130130
- context: *data
131-
args: ['`false`']
131+
args: [false]
132132
error: invalid-type
133133
- context: *data
134-
args: ['`-24`']
134+
args: [-24]
135135
returns: 24
136136
- context: *data
137-
args: ['`1`', '`2`']
137+
args: [1, 2]
138138
error: invalid-arity
139139
- context: *data
140140
args: ['']

functions/avg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ examples:
4545
args: [array]
4646
error: invalid-type
4747
- context: *data
48-
args: ["'abc'"]
48+
args: ['abc']
4949
error: invalid-type
5050
- context: *data
5151
args: [foo]

functions/ceil.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ examples:
3737
empty_hash: {}
3838
objects: {foo: bar, bar: baz}
3939
null_key:
40-
args: ['`1.2`']
40+
args: [1.2]
4141
returns: 2
4242
- context: *data
4343
args: ['decimals[0]']
@@ -49,5 +49,5 @@ examples:
4949
args: ['decimals[2]']
5050
returns: -1
5151
- context: *data
52-
args: ["'string'"]
52+
args: ['string']
5353
error: invalid-type

functions/contains.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ examples:
6565
empty_hash: {}
6666
objects: {foo: bar, bar: baz}
6767
null_key:
68-
args: ["'abc'", "'a'"]
68+
args: ['abc', 'a']
6969
returns: true
7070
- context: *data
71-
args: ["'abc'", "'d'"]
71+
args: ['abc', 'd']
7272
returns: false
7373
- context: *data
74-
args: ['`false`', "'d'"]
74+
args: [false, 'd']
7575
error: invalid-type
7676
- context: *data
77-
args: [strings, "'a'"]
77+
args: [strings, 'a']
7878
returns: true
7979
- context: *data
80-
args: [decimals, '`1.2`']
80+
args: [decimals, 1.2]
8181
returns: true
8282
- context: *data
83-
args: [decimals, '`false`']
83+
args: [decimals, false]
8484
returns: false

functions/ends_with.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ examples:
3838
empty_hash: {}
3939
objects: {foo: bar, bar: baz}
4040
null_key:
41-
args: [str, "'r'"]
41+
args: [str, 'r']
4242
returns: true
4343
- context: *data
44-
args: [str, "'tr'"]
44+
args: [str, 'tr']
4545
returns: true
4646
- context: *data
47-
args: [str, "'Str'"]
47+
args: [str, 'Str']
4848
returns: true
4949
- context: *data
50-
args: [str, "'SStr'"]
50+
args: [str, 'SStr']
5151
returns: false
5252
- context: *data
53-
args: [str, "'foo'"]
53+
args: [str, 'foo']
5454
returns: false
5555
- context: *data
56-
args: [str, '`0`']
56+
args: [str, 0]
5757
error: invalid-type

functions/floor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ examples:
3434
empty_hash: {}
3535
objects: {foo: bar, bar: baz}
3636
null_key:
37-
args: ['`1.2`']
37+
args: [1.2]
3838
returns: 1
3939
- context: *data
40-
args: ["'string'"]
40+
args: ['string']
4141
error: invalid-type
4242
- context: *data
4343
args: ['decimals[0]']

functions/join.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,29 @@ examples:
4141
empty_hash: {}
4242
objects: {foo: bar, bar: baz}
4343
null_key:
44-
args: ["'", "'", strings]
44+
args: [', ', strings]
4545
returns: a, b, c
4646
- context: *data
47-
args: ["'", "'", '`["a"', '"b"]`']
47+
args: [', ', ["a', 'b"]]
4848
returns: a,b
4949
- context: *data
50-
args: ["'", "'", '`["a"', '0]`']
50+
args: [', ', ["a", 0]]
5151
error: invalid-type
5252
- context: *data
53-
args: ["'", "'", str]
53+
args: [', ', str]
5454
error: invalid-type
5555
- context: *data
56-
args: ["'|'", strings]
56+
args: ['|', strings]
5757
returns: a|b|c
5858
- context: *data
59-
args: ['`2`', strings]
59+
args: [2, strings]
6060
error: invalid-type
6161
- context: *data
62-
args: ["'|'", decimals]
62+
args: ['|', decimals]
6363
error: invalid-type
6464
- context: *data
65-
args: ["'|'", 'decimals[].to_string(@)']
66-
returns: 1.01|1.2|-1.5
65+
args: ['|', 'decimals[].to_string(@)']
66+
returns: '1.01|1.2|-1.5'
6767
- context: *data
68-
args: ["'|'", empty_list]
68+
args: ['|', empty_list]
6969
returns: ''

functions/keys.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ examples:
4747
args: [strings]
4848
error: invalid-type
4949
- context: *data
50-
args: ['`false`']
50+
args: [false]
5151
error: invalid-type
5252
- context: *data
5353
args: [empty_hash]

functions/length.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ examples:
5555
empty_hash: {}
5656
objects: {foo: bar, bar: baz}
5757
null_key:
58-
args: ["'abc'"]
58+
args: ['abc']
5959
returns: 3
6060
- context: *data
61-
args: ["'\u2713foo'"]
61+
args: ['\u2713foo']
6262
returns: 4
6363
- context: *data
64-
args: ["''"]
64+
args: ['']
6565
returns: 0
6666
- context: *data
6767
args: ['@']
@@ -79,7 +79,7 @@ examples:
7979
args: [objects]
8080
returns: 2
8181
- context: *data
82-
args: ['`false`']
82+
args: [false]
8383
error: invalid-type
8484
- context: *data
8585
args: [foo]

functions/merge.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ examples:
4242
empty_hash: {}
4343
objects: {foo: bar, bar: baz}
4444
null_key:
45-
args: ['`{}`']
45+
args: [{}]
4646
returns: {}
4747
- context: *data
48-
args: ['`{}`', '`{}`']
48+
args: [{}, {}]
4949
returns: {}
5050
- context: *data
51-
args: ['`{"a": 1}`', '`{"b": 2}`']
51+
args: [{"a": 1}, {"b": 2}]
5252
returns: {a: 1, b: 2}
5353
- context: *data
54-
args: ['`{"a": 1}`', '`{"a": 2}`']
54+
args: [{"a": 1}, {"a": 2}]
5555
returns: {a: 2}
5656
- context: *data
57-
args: ['`{"a": 1', '"b": 2}`', '`{"a": 2', '"c": 3}`', '`{"d": 4}`']
57+
args: [{"a": 1, "b": 2}, {"a": 2, "c": 3}, {"d": 4}]
5858
returns: {a: 2, b: 2, c: 3, d: 4}

0 commit comments

Comments
 (0)