pkstrings: rustfmt in tests

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-07-06 01:28:01 +02:00
parent b5deb06f22
commit 11e54ded8b
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -168,8 +168,8 @@ impl TryFrom<String> for PKString {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use std::convert::TryFrom;
use crate::PKString; use crate::PKString;
use std::convert::TryFrom;
#[test] #[test]
fn test_from_ord() { fn test_from_ord() {
@ -183,7 +183,8 @@ mod tests {
0x50, 0x50, 0x8f, 0x88, 0x83, 0x86, 0x84, 0x98, 0x50, 0x50, 0x50, 0x50, 0x50, 0x82, 0x50, 0x50, 0x8f, 0x88, 0x83, 0x86, 0x84, 0x98, 0x50, 0x50, 0x50, 0x50, 0x50, 0x82,
0x87, 0x80, 0x91, 0x8c, 0x80, 0x8d, 0x83, 0x84, 0x91, 0x50, 0x87, 0x80, 0x91, 0x8c, 0x80, 0x8d, 0x83, 0x84, 0x91, 0x50,
]; ];
let result = String::from("KADABRA@@@@NIDOKING@@@BLASTOISE@@ODDISH@@@@@PIDGEY@@@@@CHARMANDER@"); let result =
String::from("KADABRA@@@@NIDOKING@@@BLASTOISE@@ODDISH@@@@@PIDGEY@@@@@CHARMANDER@");
assert_eq!(PKString::try_from(party_nicks), Ok(PKString(result))); assert_eq!(PKString::try_from(party_nicks), Ok(PKString(result)));
} }