|
| 1 | +From 724ad34dea87caf2dde5f19af51d7b5527acf3a2 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Simon Gene Gottlieb <simon@gottliebtfreitag.de> |
| 3 | +Date: Thu, 5 Oct 2023 13:43:30 +0200 |
| 4 | +Subject: [PATCH 1/2] [API] Update TDL |
| 5 | + |
| 6 | +--- |
| 7 | + test/unit/detail/format_ctd_test.cpp | 2 +- |
| 8 | + test/unit/detail/format_cwl_test.cpp | 22 +++++++++++----------- |
| 9 | + 2 files changed, 12 insertions(+), 12 deletions(-) |
| 10 | + |
| 11 | +diff --git a/test/unit/detail/format_ctd_test.cpp b/test/unit/detail/format_ctd_test.cpp |
| 12 | +index fa6a5b6..352acaa 100644 |
| 13 | +--- a/test/unit/detail/format_ctd_test.cpp |
| 14 | ++++ b/test/unit/detail/format_ctd_test.cpp |
| 15 | +@@ -110,7 +110,7 @@ TEST_F(format_ctd_test, empty_information) |
| 16 | + // Create the dummy parser. |
| 17 | + sharg::parser parser{"default", argv.size(), argv.data()}; |
| 18 | + parser.info.date = "December 01, 1994"; |
| 19 | +- parser.info.version = "1.1.1"; |
| 20 | ++ parser.info.version = "1.1.2-rc.1"; |
| 21 | + parser.info.man_page_title = "default_man_page_title"; |
| 22 | + parser.info.short_description = "A short description here."; |
| 23 | + |
| 24 | +diff --git a/test/unit/detail/format_cwl_test.cpp b/test/unit/detail/format_cwl_test.cpp |
| 25 | +index d2bb143..5591a88 100644 |
| 26 | +--- a/test/unit/detail/format_cwl_test.cpp |
| 27 | ++++ b/test/unit/detail/format_cwl_test.cpp |
| 28 | +@@ -20,12 +20,12 @@ TEST(format_cwl_test, empty_information) |
| 29 | + parser.info.man_page_title = "default_man_page_title"; |
| 30 | + parser.info.short_description = "A short description here."; |
| 31 | + |
| 32 | +- std::string expected_short = "inputs:\n" |
| 33 | +- " {}\n" |
| 34 | +- "outputs:\n" |
| 35 | +- " {}\n" |
| 36 | +- "label: default\n" |
| 37 | ++ std::string expected_short = "label: default\n" |
| 38 | + "doc: \"\"\n" |
| 39 | ++ "inputs:\n" |
| 40 | ++ " []\n" |
| 41 | ++ "outputs:\n" |
| 42 | ++ " []\n" |
| 43 | + "cwlVersion: v1.2\n" |
| 44 | + "class: CommandLineTool\n" |
| 45 | + "baseCommand:\n" |
| 46 | +@@ -75,7 +75,9 @@ TEST(format_cwl_test, full_information) |
| 47 | + parser.info.examples.push_back("example"); |
| 48 | + parser.info.examples.push_back("example2"); |
| 49 | + |
| 50 | +- std::string expected_short = "inputs:\n" |
| 51 | ++ std::string expected_short = "label: default\n" |
| 52 | ++ "doc: \"description\\ndescription2\\n\"\n" |
| 53 | ++ "inputs:\n" |
| 54 | + " int:\n" |
| 55 | + " doc: \"this is a int option. Default: 5. \"\n" |
| 56 | + " type: long?\n" |
| 57 | +@@ -87,9 +89,7 @@ TEST(format_cwl_test, full_information) |
| 58 | + " inputBinding:\n" |
| 59 | + " prefix: --jint\n" |
| 60 | + "outputs:\n" |
| 61 | +- " {}\n" |
| 62 | +- "label: default\n" |
| 63 | +- "doc: \"description\\ndescription2\\n\"\n" |
| 64 | ++ " []\n" |
| 65 | + "cwlVersion: v1.2\n" |
| 66 | + "class: CommandLineTool\n" |
| 67 | + "baseCommand:\n" |
| 68 | +@@ -193,6 +193,8 @@ TEST(format_cwl_test, subparser) |
| 69 | + sub_parser.info.examples.push_back("example2"); |
| 70 | + |
| 71 | + std::string expected_short = |
| 72 | ++ "label: default-index\n" |
| 73 | ++ "doc: \"\"\n" |
| 74 | + "inputs:\n" |
| 75 | + " int:\n" |
| 76 | + " doc: \"this is a int option. Default: 5. \"\n" |
| 77 | +@@ -251,8 +253,6 @@ TEST(format_cwl_test, subparser) |
| 78 | + " type: Directory?\n" |
| 79 | + " outputBinding:\n" |
| 80 | + " glob: $(inputs.path05)\n" |
| 81 | +- "label: default-index\n" |
| 82 | +- "doc: \"\"\n" |
| 83 | + "cwlVersion: v1.2\n" |
| 84 | + "class: CommandLineTool\n" |
| 85 | + "baseCommand:\n" |
| 86 | +-- |
| 87 | +2.43.0 |
| 88 | + |
0 commit comments