Skip to content

Commit f696914

Browse files
committed
prepare router release
1 parent 3618f54 commit f696914

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

router/CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changes
2+
3+
## [0.1.0] - 2019-03-09
4+
5+
* Initial release

router/src/path.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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-
}

0 commit comments

Comments
 (0)