File tree Expand file tree Collapse file tree 2 files changed +5
-29
lines changed Expand file tree Collapse file tree 2 files changed +5
-29
lines changed Original file line number Diff line number Diff line change 1+ # Changes
2+
3+ ## [0.1.0] - 2019-03-09
4+
5+ * Initial release
Original file line number Diff line number Diff line change @@ -208,32 +208,3 @@ impl<T: ResourcePath> Resource<T> for Path<T> {
208208 self
209209 }
210210}
211-
212- #[ cfg( test) ]
213- mod tests {
214- use super :: * ;
215-
216- #[ cfg( feature = "http" ) ]
217- #[ test]
218- fn test_get_param_by_name ( ) {
219- use crate :: Url ;
220- use http:: { HttpTryFrom , Uri } ;
221-
222- let mut params = Path :: new ( Url :: new ( Uri :: try_from ( "/" ) . unwrap ( ) ) ) ;
223- params. add_static ( "item1" , "path" ) ;
224- params. add_static ( "item2" , "http%3A%2F%2Flocalhost%3A80%2Ffoo" ) ;
225-
226- assert_eq ! ( params. get( "item0" ) , None ) ;
227- assert_eq ! ( params. get_decoded( "item0" ) , None ) ;
228- assert_eq ! ( params. get( "item1" ) , Some ( "path" ) ) ;
229- assert_eq ! ( params. get_decoded( "item1" ) . unwrap( ) . to_owned( ) , "path" ) ;
230- assert_eq ! (
231- params. get( "item2" ) ,
232- Some ( "http%3A%2F%2Flocalhost%3A80%2Ffoo" )
233- ) ;
234- assert_eq ! (
235- params. get_decoded( "item2" ) . unwrap( ) . to_owned( ) ,
236- "http://localhost:80/foo"
237- ) ;
238- }
239- }
You can’t perform that action at this time.
0 commit comments