Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Remove outdated unit-tests (#103)
Browse files Browse the repository at this point in the history
* Update AppVeyor badge

* Remove outdated unit tests
  • Loading branch information
r8d8 authored Apr 2, 2018
1 parent bc9dd88 commit 2c3b684
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/cmd/arg_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,6 @@ mod tests {
assert!(parse_arg("").is_err());
}

#[test]
fn should_convert_arg_to_opt() {
assert_eq!(arg_to_opt("").unwrap(), None);
assert_eq!(arg_to_opt("test").unwrap(), Some("test".to_string()));
}

#[test]
fn should_parse_private_key() {
let pk = PrivateKey::try_from(&[0u8; 32]).unwrap();
Expand Down Expand Up @@ -276,29 +270,6 @@ mod tests {
assert!(parse_data("01000z").is_err());
}

#[test]
fn should_parse_gas() {
assert_eq!(parse_gas_or_default("0x000", &None, &None).unwrap(), 0);
assert_eq!(
parse_gas_or_default("", &Some("0x000".to_string()), &None).unwrap(),
0
);
assert!(parse_gas_or_default("", &None, &None).is_err());
}

#[test]
fn should_parse_gas_price() {
assert_eq!(
parse_gas_price_or_default("0x000", &None, &None).unwrap(),
[0u8; 32]
);
assert_eq!(
parse_gas_price_or_default("", &Some("0x000".to_string()), &None).unwrap(),
[0u8; 32]
);
assert!(parse_gas_price_or_default("", &None, &None).is_err());
}

#[test]
fn should_parse_socket_addr() {
assert_eq!(
Expand Down

0 comments on commit 2c3b684

Please sign in to comment.