Skip to content

Commit 2cf993d

Browse files
committed
test: adjusting to new order of properties
1 parent 66ede73 commit 2cf993d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/unit/detail/format_cwl_test.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ TEST(format_cwl_test, empty_information)
2020
parser.info.man_page_title = "default_man_page_title";
2121
parser.info.short_description = "A short description here.";
2222

23-
std::string expected_short = "inputs:\n"
24-
" {}\n"
25-
"outputs:\n"
26-
" {}\n"
27-
"label: default\n"
23+
std::string expected_short = "label: default\n"
2824
"doc: \"\"\n"
25+
"inputs:\n"
26+
" []\n"
27+
"outputs:\n"
28+
" []\n"
2929
"cwlVersion: v1.2\n"
3030
"class: CommandLineTool\n"
3131
"baseCommand:\n"
@@ -75,7 +75,9 @@ TEST(format_cwl_test, full_information)
7575
parser.info.examples.push_back("example");
7676
parser.info.examples.push_back("example2");
7777

78-
std::string expected_short = "inputs:\n"
78+
std::string expected_short = "label: default\n"
79+
"doc: \"description\\ndescription2\\n\"\n"
80+
"inputs:\n"
7981
" int:\n"
8082
" doc: \"this is a int option. Default: 5. \"\n"
8183
" type: long?\n"
@@ -87,9 +89,7 @@ TEST(format_cwl_test, full_information)
8789
" inputBinding:\n"
8890
" prefix: --jint\n"
8991
"outputs:\n"
90-
" {}\n"
91-
"label: default\n"
92-
"doc: \"description\\ndescription2\\n\"\n"
92+
" []\n"
9393
"cwlVersion: v1.2\n"
9494
"class: CommandLineTool\n"
9595
"baseCommand:\n"
@@ -193,6 +193,8 @@ TEST(format_cwl_test, subparser)
193193
sub_parser.info.examples.push_back("example2");
194194

195195
std::string expected_short =
196+
"label: default-index\n"
197+
"doc: \"\"\n"
196198
"inputs:\n"
197199
" int:\n"
198200
" doc: \"this is a int option. Default: 5. \"\n"
@@ -251,8 +253,6 @@ TEST(format_cwl_test, subparser)
251253
" type: Directory?\n"
252254
" outputBinding:\n"
253255
" glob: $(inputs.path05)\n"
254-
"label: default-index\n"
255-
"doc: \"\"\n"
256256
"cwlVersion: v1.2\n"
257257
"class: CommandLineTool\n"
258258
"baseCommand:\n"

0 commit comments

Comments
 (0)