aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-20 15:05:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-20 15:05:38 -0700
commit7bfabb70e57ad2b7534f9aba3bb451ed08214623 (patch)
tree7200a8cee0f38c0769386ea76f2516ec4a117959
parent677798a0b4617712e5ccc28a9ea89f9ca1ec3afa (diff)
downloadfatcat-7bfabb70e57ad2b7534f9aba3bb451ed08214623.tar.gz
fatcat-7bfabb70e57ad2b7534f9aba3bb451ed08214623.zip
more fcid tests
-rw-r--r--rust/tests/test_fcid.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/tests/test_fcid.rs b/rust/tests/test_fcid.rs
index c9f6c00d..befca435 100644
--- a/rust/tests/test_fcid.rs
+++ b/rust/tests/test_fcid.rs
@@ -14,7 +14,11 @@ fn test_fcid_conversions() {
assert_eq!(test_uuid, fcid2uuid(&test_fcid.to_uppercase()).unwrap());
assert_eq!(test_uuid, fcid2uuid(&uuid2fcid(&test_uuid)).unwrap());
+ assert_eq!(Uuid::parse_str("10842108-4210-8421-0842-108421084210").unwrap(),
+ fcid2uuid("ccccccccccccccccccccccccca").unwrap());
+
assert_eq!(false, fcid2uuid("asdf").is_ok());
assert_eq!(false, fcid2uuid("q3nouwy3nnbsvo3h5klx").is_ok());
assert_eq!(false, fcid2uuid("10Oouwy3nnbsvo3h5klxsx4a7y").is_ok());
+ assert_eq!(false, fcid2uuid("cccccccccccccccccccccccccc").is_ok());
}