diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-14 17:35:58 +0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-14 17:35:58 +0800 |
commit | 9ca1bdfdba5de8191ad598ef0cc288eff4d50975 (patch) | |
tree | 47360fac06cf15b4233509c4c16fbf41e216ad0c /rust/tests | |
parent | aa7b96fd94bfe5d8f47b566cbb0f3a112c0ac755 (diff) | |
download | fatcat-9ca1bdfdba5de8191ad598ef0cc288eff4d50975.tar.gz fatcat-9ca1bdfdba5de8191ad598ef0cc288eff4d50975.zip |
new rustfmt (1.31)
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/test_old_python_tests.rs | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/rust/tests/test_old_python_tests.rs b/rust/tests/test_old_python_tests.rs index eae131a7..d7e5c03b 100644 --- a/rust/tests/test_old_python_tests.rs +++ b/rust/tests/test_old_python_tests.rs @@ -277,20 +277,19 @@ fn test_merge_works() { // merge works client.merge_works(work_a_id, work_b_id) */ +// check results +let work_a = match client.get_work(work_a_id.clone(), None).wait().unwrap() { +GetWorkResponse::FoundEntity(e) => e, +_ => unreachable!(), +}; +let _work_b = match client.get_work(work_b_id.clone(), None).wait().unwrap() { +GetWorkResponse::FoundEntity(e) => e, +_ => unreachable!(), +}; +// TODO: assert_eq!(work_a.revision.unwrap(), work_b.revision.unwrap()); +assert_eq!(work_a.redirect, None); +// TODO: assert_eq!(work_b.redirect, Some(work_a_id)); - // check results - let work_a = match client.get_work(work_a_id.clone(), None).wait().unwrap() { - GetWorkResponse::FoundEntity(e) => e, - _ => unreachable!(), - }; - let _work_b = match client.get_work(work_b_id.clone(), None).wait().unwrap() { - GetWorkResponse::FoundEntity(e) => e, - _ => unreachable!(), - }; - // TODO: assert_eq!(work_a.revision.unwrap(), work_b.revision.unwrap()); - assert_eq!(work_a.redirect, None); - // TODO: assert_eq!(work_b.redirect, Some(work_a_id)); - - server.close().unwrap() +server.close().unwrap() } */ |