diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-12 11:12:12 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-12 11:12:43 -0700 |
commit | aa9abbbab67c6344d382a964b3c451e0bf212efe (patch) | |
tree | 75f86c1b9a536a991872c5643dd1cd970a1ca85c /rust/src/api_helpers.rs | |
parent | eb05234037c6cb165e548a43859b77f9d5421189 (diff) | |
download | fatcat-aa9abbbab67c6344d382a964b3c451e0bf212efe.tar.gz fatcat-aa9abbbab67c6344d382a964b3c451e0bf212efe.zip |
fix rust in-line tests, and parse_line takes ref
Forgot to run tests before pushing... thanks CI!
Diffstat (limited to 'rust/src/api_helpers.rs')
-rw-r--r-- | rust/src/api_helpers.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/api_helpers.rs b/rust/src/api_helpers.rs index 1df42622..47c03e58 100644 --- a/rust/src/api_helpers.rs +++ b/rust/src/api_helpers.rs @@ -90,11 +90,11 @@ fn test_expand_flags() { creators: true } ); - assert!(ExpandFlags::from_str("").files == false); - assert!(ExpandFlags::from_str("files").files == true); - assert!(ExpandFlags::from_str("something,,files").files == true); - assert!(ExpandFlags::from_str("file").files == false); - let all = ExpandFlags::from_str("files,container,other_thing,releases,creators"); + assert!(ExpandFlags::from_str("").unwrap().files == false); + assert!(ExpandFlags::from_str("files").unwrap().files == true); + assert!(ExpandFlags::from_str("something,,files").unwrap().files == true); + assert!(ExpandFlags::from_str("file").unwrap().files == false); + let all = ExpandFlags::from_str("files,container,other_thing,releases,creators").unwrap(); assert!( all == ExpandFlags { files: true, |