From f90802498f20c32e46411a5bd661c79dc213999e Mon Sep 17 00:00:00 2001 From: Guanqun Lu Date: Thu, 11 May 2017 14:05:56 +0800 Subject: [PATCH] add two asserts in unit tests for spec::authority_round --- json/src/spec/authority_round.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/json/src/spec/authority_round.rs b/json/src/spec/authority_round.rs index 99d138d00..83e029c56 100644 --- a/json/src/spec/authority_round.rs +++ b/json/src/spec/authority_round.rs @@ -60,6 +60,8 @@ pub struct AuthorityRound { #[cfg(test)] mod tests { + use uint::Uint; + use util::U256; use serde_json; use spec::authority_round::AuthorityRound; @@ -79,6 +81,8 @@ mod tests { } }"#; - let _deserialized: AuthorityRound = serde_json::from_str(s).unwrap(); + let deserialized: AuthorityRound = serde_json::from_str(s).unwrap(); + assert_eq!(deserialized.params.gas_limit_bound_divisor, Uint(U256::from(0x0400))); + assert_eq!(deserialized.params.step_duration, Uint(U256::from(0x02))); } }