Fixed CTCP VERSION test.
This commit is contained in:
parent
1030f51b46
commit
4d9d015f84
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
//! Interface for working with IRC Servers.
|
//! Interface for working with IRC Servers.
|
||||||
|
#[cfg(feature = "ctcp")]
|
||||||
use std::ascii::AsciiExt;
|
use std::ascii::AsciiExt;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
@ -946,8 +947,7 @@ mod test {
|
||||||
}).wait().unwrap();
|
}).wait().unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
&get_server_value(server)[..],
|
&get_server_value(server)[..],
|
||||||
"NOTICE test :\u{001}FINGER :test (test)\u{001}\
|
"NOTICE test :\u{001}FINGER :test (test)\u{001}\r\n"
|
||||||
\r\n"
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -965,8 +965,10 @@ mod test {
|
||||||
}).wait().unwrap();
|
}).wait().unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
&get_server_value(server)[..],
|
&get_server_value(server)[..],
|
||||||
"NOTICE test :\u{001}VERSION irc:git:Rust\u{001}\
|
&format!(
|
||||||
\r\n"
|
"NOTICE test :\u{001}VERSION {}\u{001}\r\n",
|
||||||
|
::VERSION_STR,
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue