Unit Tests #9
1 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn parse_bucket_with_key() -> Result<(), Error> {
|
fn parse_bucket_with_key() -> Result<(), Error> {
|
||||||
let (bucket,key) = parse_bucket_key("/my_bucket/a/super/file.jpg")?;
|
let (bucket, key) = parse_bucket_key("/my_bucket/a/super/file.jpg")?;
|
||||||
assert_eq!(bucket, "my_bucket");
|
assert_eq!(bucket, "my_bucket");
|
||||||
assert_eq!(key.expect("key must be set"), "a/super/file.jpg");
|
assert_eq!(key.expect("key must be set"), "a/super/file.jpg");
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue