Changeset 74998 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Oct 23, 2018 1:17:52 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 126024
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTCRest-1.cpp
r74997 r74998 2028 2028 RTTESTI_CHECK_RC(doPathParameters(&strPath, RT_STR_TUPLE("my/{integer}/{string}/array:{array}/path"), 2029 2029 s_aParams, aState, RT_ELEMENTS(aState)), VINF_SUCCESS); 2030 RTTESTI_CHECK_MSG(strPath.equals(a_pszExpected), ("actual: '%s'\nexpect: %s\n", strPath.c_str(), a_pszExpected));2030 RTTESTI_CHECK_MSG(strPath.equals(a_pszExpected), ("actual: '%s'\nexpect: '%s'\n", strPath.c_str(), a_pszExpected)); 2031 2031 } 2032 2032 … … 2110 2110 { 2111 2111 TestRequest Req1("this-is-a-string", 123456789, 5, "1", "22", "333", "444", "555"); 2112 Req1.testPath("my/123456789/this-is-a-string/array:1 ,22,333,444,555/path");2112 Req1.testPath("my/123456789/this-is-a-string/array:1%2C22%2C333%2C444%2C555/path"); 2113 2113 Req1.testQuery("?string=this-is-a-string&integer=123456789&array=1%2C22%2C333%2C444%2C555", 2114 2114 "?string=this-is-a-string&integer=123456789&array=1%2022%20333%20444%20555", … … 2123 2123 RTTESTI_CHECK_RC(Req2.m_Map.put("stuff-2", new RTCRestString("stuffy-value-2")), VINF_SUCCESS); 2124 2124 RTTESTI_CHECK_RC(Req2.m_Map.put("2222", new RTCRestString("33")), VINF_SUCCESS); 2125 Req2.testPath("my/42/ ;'[]/array:null,foo,bar/path"); /// @todo shouldn't the string chars (;'[]) be escaped?2125 Req2.testPath("my/42/%3B%27%5B%5D/array:null%2Cfoo%2Cbar/path"); 2126 2126 Req2.testQuery("?string=%3B%27%5B%5D&integer=42&array=null%2Cfoo%2Cbar", 2127 2127 "?string=%3B%27%5B%5D&integer=42&array=null%20foo%20bar",
Note:
See TracChangeset
for help on using the changeset viewer.