From 5a8c31e6bf8e10b6fde71fbd3e93fa0b05d6f72a Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 2 Sep 2019 16:29:05 +1000 Subject: [PATCH] Remove JSON epoch test --- eth2/types/src/slot_epoch.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/eth2/types/src/slot_epoch.rs b/eth2/types/src/slot_epoch.rs index 748d6445f7..bd611aa0ce 100644 --- a/eth2/types/src/slot_epoch.rs +++ b/eth2/types/src/slot_epoch.rs @@ -191,16 +191,4 @@ mod epoch_tests { Epoch::from_ssz_bytes(&max_epoch.as_ssz_bytes()).unwrap() ); } - - #[test] - fn epoch_max_value_json() { - let x: Epoch = Epoch::from(u64::max_value()); - let json = serde_json::to_string(&x).expect("should json encode"); - - assert_eq!(&json, "18446744073709552000"); - assert_eq!( - serde_json::from_str::(&json).expect("should json decode"), - x - ); - } }