summaryrefslogtreecommitdiffstats
path: root/rust/tests/test_fcid.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-09 18:30:48 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-09 18:30:48 -0800
commit7632129c594b9edbae8ee9ba5da6ae35d1af2429 (patch)
treedb1c56b35aa4c81ec1c925d527b80caa30f9c06f /rust/tests/test_fcid.rs
parent8317f6cb38622e36dad6bd4ad34e3cf6dac3bdad (diff)
downloadfatcat-7632129c594b9edbae8ee9ba5da6ae35d1af2429.tar.gz
fatcat-7632129c594b9edbae8ee9ba5da6ae35d1af2429.zip
refactor: FatCatId -> FatcatId
Diffstat (limited to 'rust/tests/test_fcid.rs')
-rw-r--r--rust/tests/test_fcid.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/rust/tests/test_fcid.rs b/rust/tests/test_fcid.rs
index 31f7030a..4feaa940 100644
--- a/rust/tests/test_fcid.rs
+++ b/rust/tests/test_fcid.rs
@@ -3,15 +3,15 @@ extern crate uuid;
// TODO: these should just be in-line in identifiers.rs
-use fatcat::identifiers::{fcid2uuid, uuid2fcid, FatCatId};
+use fatcat::identifiers::{fcid2uuid, uuid2fcid, FatcatId};
use uuid::Uuid;
#[test]
fn test_fcid_conversions() {
let test_uuid = Uuid::parse_str("86daea5b-1b6b-432a-bb67-ea97795f80fe").unwrap();
- let test_str = "q3nouwy3nnbsvo3h5klxsx4a7y";
+ let test_str = "q3nouwy3nnbsvo3h5klxsx4a7y";
- assert_eq!(test_str, uuid2fcid(&test_uuid));
+ assert_eq!(test_str, uuid2fcid(&test_uuid));
assert_eq!(test_uuid, fcid2uuid(test_str).unwrap());
assert_eq!(test_uuid, fcid2uuid(&test_str.to_uppercase()).unwrap());
assert_eq!(test_uuid, fcid2uuid(&uuid2fcid(&test_uuid)).unwrap());
@@ -30,14 +30,14 @@ fn test_fcid_conversions() {
#[test]
fn test_fcid_struct() {
let test_uuid = Uuid::parse_str("86daea5b-1b6b-432a-bb67-ea97795f80fe").unwrap();
- let test_str = "q3nouwy3nnbsvo3h5klxsx4a7y";
- let test_fcid = FatCatId::from_uuid(&test_uuid);
+ let test_str = "q3nouwy3nnbsvo3h5klxsx4a7y";
+ let test_fcid = FatcatId::from_uuid(&test_uuid);
- assert_eq!(test_str, test_fcid.to_string());
- assert_eq!(test_str, format!("{}", test_fcid));
+ assert_eq!(test_str, test_fcid.to_string());
+ assert_eq!(test_str, format!("{}", test_fcid));
assert_eq!(test_uuid, test_fcid.to_uuid());
// Inner UUID isn't public, so this doesn't work
- //let test_fcid2 = FatCatId(test_uuid);
+ //let test_fcid2 = FatcatId(test_uuid);
//assert_eq!(test_fcid, test_fcid2);
}