diff options
author | cypherpunks <cypherpunks@torproject.org> | 2018-08-18 20:05:19 +0000 |
---|---|---|
committer | cypherpunks <cypherpunks@torproject.org> | 2018-09-12 02:47:59 +0000 |
commit | b88a2f28ae3845927021edb7ba87063bedf9bfa5 (patch) | |
tree | b2ccfeb5456294843010b502ea09ba1ab0499a91 /src/rust/protover/protover.rs | |
parent | e9ef7d5ab42a8f896be92b9ed2c1818044b38f04 (diff) | |
download | tor-b88a2f28ae3845927021edb7ba87063bedf9bfa5.tar.gz tor-b88a2f28ae3845927021edb7ba87063bedf9bfa5.zip |
rust/protover: remove version zero from tests
This isn't legal according to dir-spec.txt.
We can write separate tests for it if the spec
is changed to make it legal.
Diffstat (limited to 'src/rust/protover/protover.rs')
-rw-r--r-- | src/rust/protover/protover.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rust/protover/protover.rs b/src/rust/protover/protover.rs index 17a8d60ec6..12ede53e5b 100644 --- a/src/rust/protover/protover.rs +++ b/src/rust/protover/protover.rs @@ -867,10 +867,10 @@ mod test { #[test] fn test_protoentry_all_supported_unsupported_low_version() { - let protocols: UnvalidatedProtoEntry = "Cons=0-1".parse().unwrap(); + let protocols: UnvalidatedProtoEntry = "HSIntro=2-3".parse().unwrap(); let unsupported: Option<UnvalidatedProtoEntry> = protocols.all_supported(); assert_eq!(true, unsupported.is_some()); - assert_eq!("Cons=0", &unsupported.unwrap().to_string()); + assert_eq!("HSIntro=2", &unsupported.unwrap().to_string()); } #[test] |