You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
215 B
Rust
11 lines
215 B
Rust
9 years ago
|
use mongo_driver::Uri;
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
#[test]
|
||
|
fn test_new_uri() {
|
||
|
let uri = Uri::new("mongodb://localhost:27017/");
|
||
|
assert_eq!("mongodb://localhost:27017/", uri.as_str());
|
||
|
}
|
||
|
}
|