tests.rs 601 B

1234567891011121314151617181920
  1. use crate::ProposalParameters;
  2. // Enable during the conditional compilation tests.
  3. #[ignore]
  4. #[test]
  5. fn proposal_parameters_are_initialized() {
  6. let actual_params = super::SetValidatorCountProposalParameters::get();
  7. let expected_params = ProposalParameters {
  8. voting_period: 1,
  9. grace_period: 2,
  10. approval_quorum_percentage: 3,
  11. approval_threshold_percentage: 4,
  12. slashing_quorum_percentage: 5,
  13. slashing_threshold_percentage: 6,
  14. required_stake: Some(7),
  15. constitutionality: 8,
  16. };
  17. assert_eq!(expected_params, actual_params);
  18. }