Fixed tests for irc-proto.

This commit is contained in:
Aaron Weiss 2018-03-10 15:59:29 +01:00
parent fcadf49d31
commit 3df2c49074
No known key found for this signature in database
GPG key ID: 047D32DF25DC22EF
2 changed files with 10 additions and 10 deletions

View file

@ -5,7 +5,7 @@ description = "The IRC protocol distilled."
authors = ["Aaron Weiss <awe@pdgn.co>"] authors = ["Aaron Weiss <awe@pdgn.co>"]
license = "MPL-2.0" license = "MPL-2.0"
keywords = ["irc", "protocol", "tokio"] keywords = ["irc", "protocol", "tokio"]
categroies = ["network-programming"] categories = ["network-programming"]
documentation = "https://docs.rs/irc-proto/" documentation = "https://docs.rs/irc-proto/"
repository = "https://github.com/aatxe/irc" repository = "https://github.com/aatxe/irc"

View file

@ -31,8 +31,8 @@ impl Message {
/// ///
/// # Example /// # Example
/// ``` /// ```
/// # extern crate irc; /// # extern crate irc_proto;
/// # use irc::client::prelude::*; /// # use irc_proto::Message;
/// # fn main() { /// # fn main() {
/// let message = Message::new( /// let message = Message::new(
/// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None /// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None
@ -69,8 +69,8 @@ impl Message {
/// ///
/// # Example /// # Example
/// ``` /// ```
/// # extern crate irc; /// # extern crate irc_proto;
/// # use irc::client::prelude::*; /// # use irc_proto::Message;
/// # fn main() { /// # fn main() {
/// let message = Message::new( /// let message = Message::new(
/// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None /// Some("nickname!username@hostname"), "JOIN", vec!["#channel"], None
@ -99,8 +99,8 @@ impl Message {
/// ///
/// # Example /// # Example
/// ``` /// ```
/// # extern crate irc; /// # extern crate irc_proto;
/// # use irc::client::prelude::*; /// # use irc_proto::Message;
/// # fn main() { /// # fn main() {
/// let msg1 = Message::new( /// let msg1 = Message::new(
/// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!") /// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!")
@ -124,8 +124,8 @@ impl Message {
/// ///
/// # Example /// # Example
/// ``` /// ```
/// # extern crate irc; /// # extern crate irc_proto;
/// # use irc::client::prelude::*; /// # use irc_proto::Message;
/// # fn main() { /// # fn main() {
/// let msg = Message::new( /// let msg = Message::new(
/// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!") /// Some("ada"), "PRIVMSG", vec!["#channel"], Some("Hi, everyone!")
@ -278,7 +278,7 @@ pub struct Tag(pub String, pub Option<String>);
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use super::{Message, Tag}; use super::{Message, Tag};
use proto::Command::{PRIVMSG, QUIT, Raw}; use command::Command::{PRIVMSG, QUIT, Raw};
#[test] #[test]
fn new() { fn new() {