@@ -70,10 +70,9 @@ BOOST_AUTO_TEST_CASE(encoded_path_test)
70
70
instance << uri::scheme (" http" )
71
71
<< uri::host (" www.example.com" )
72
72
<< uri::port (8000 )
73
- << uri::encoded_path (" /Path%20With%20%28Some%29%20Encoded%20Characters%21 " )
74
- // << uri::path(uri::encoded("/Path%20With%20%28Some%29%20Encoded%20Characters%21")
73
+ << uri::encoded_path (" /Path With (Some) Encoded Characters! " )
74
+ ;
75
75
;
76
- std::cout << instance << std::endl;
77
76
BOOST_REQUIRE (uri::valid (instance));
78
77
BOOST_CHECK_EQUAL (uri::scheme (instance), " http" );
79
78
BOOST_CHECK_EQUAL (uri::host (instance), " www.example.com" );
@@ -141,24 +140,17 @@ BOOST_AUTO_TEST_CASE(from_root_test)
141
140
// BOOST_CHECK_EQUAL(uri::path(instance), "/");
142
141
// }
143
142
144
- // BOOST_AUTO_TEST_CASE(encoded_null_char_test)
145
- // {
146
- // typedef uri::uri uri_type;
147
- // typedef uri_type::string_type string_type;
148
- //
149
- // const std::string scheme("http");
150
- // const std::string host("www.example.com");
151
- // const std::string path("/");
152
- //
153
- // uri_type instance;
154
- // // there is a potential bug in the way we process ranges if the
155
- // // strings are null terminated.
156
- // instance << uri::scheme("http")
157
- // << uri::host("www.example.com")
158
- // << uri::encoded_path("/")
159
- // ;
160
- // BOOST_REQUIRE(uri::valid(instance));
161
- // BOOST_CHECK_EQUAL(uri::scheme(instance), scheme);
162
- // BOOST_CHECK_EQUAL(uri::host(instance), host);
163
- // BOOST_CHECK_EQUAL(uri::path(instance), path);
164
- // }
143
+ BOOST_AUTO_TEST_CASE (encoded_null_char_test)
144
+ {
145
+ // there is a potential bug in the way we process ranges if the
146
+ // strings are null terminated.
147
+ uri::uri instance;
148
+ instance << uri::scheme (" http" )
149
+ << uri::host (" www.example.com" )
150
+ << uri::encoded_path (" /" )
151
+ ;
152
+ BOOST_REQUIRE (uri::valid (instance));
153
+ BOOST_CHECK_EQUAL (uri::scheme (instance), " http" );
154
+ BOOST_CHECK_EQUAL (uri::host (instance), " www.example.com" );
155
+ BOOST_CHECK_EQUAL (uri::path (instance), " /" );
156
+ }
0 commit comments