Skip to content

Commit 5cd1e78

Browse files
authored
Merge pull request #10 from burtcorp/comment-not-description
Use "comment" for comments in the functions feature
2 parents 7115be1 + b13386a commit 5cd1e78

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/functions.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,12 +572,12 @@
572572
"error": "invalid-arity"
573573
},
574574
{
575-
"description": "function projection on single arg function",
575+
"comment": "function projection on single arg function",
576576
"expression": "numbers[].to_string(@)",
577577
"result": ["-1", "3", "4", "5"]
578578
},
579579
{
580-
"description": "function projection on single arg function",
580+
"comment": "function projection on single arg function",
581581
"expression": "array[].to_number(@)",
582582
"result": [-1, 3, 4, 5, 100]
583583
}
@@ -595,7 +595,7 @@
595595
},
596596
"cases": [
597597
{
598-
"description": "function projection on variadic function",
598+
"comment": "function projection on variadic function",
599599
"expression": "foo[].not_null(f, e, d, c, b, a)",
600600
"result": ["b", "c", "d", "e", "f"]
601601
}
@@ -613,7 +613,7 @@
613613
},
614614
"cases": [
615615
{
616-
"description": "sort by field expression",
616+
"comment": "sort by field expression",
617617
"expression": "sort_by(people, &age)",
618618
"result": [
619619
{"age": 10, "age_str": "10", "bool": true, "name": 3},
@@ -634,7 +634,7 @@
634634
]
635635
},
636636
{
637-
"description": "sort by function expression",
637+
"comment": "sort by function expression",
638638
"expression": "sort_by(people, &to_number(age_str))",
639639
"result": [
640640
{"age": 10, "age_str": "10", "bool": true, "name": 3},
@@ -645,7 +645,7 @@
645645
]
646646
},
647647
{
648-
"description": "function projection on sort_by function",
648+
"comment": "function projection on sort_by function",
649649
"expression": "sort_by(people, &age)[].name",
650650
"result": [3, "a", "c", "b", "d"]
651651
},
@@ -733,7 +733,7 @@
733733
},
734734
"cases": [
735735
{
736-
"description": "stable sort order",
736+
"comment": "stable sort order",
737737
"expression": "sort_by(people, &age)",
738738
"result": [
739739
{"age": 10, "order": "1"},

0 commit comments

Comments
 (0)