Updated examples for if let addition, and a failure test with a message.

This commit is contained in:
Aaron Weiss 2014-12-08 15:00:10 -05:00
parent dcab79bdec
commit bdb04d693b
5 changed files with 2 additions and 5 deletions

View file

@ -1,4 +1,3 @@
#![feature(if_let)]
#![feature(slicing_syntax)]
extern crate irc;

View file

@ -1,4 +1,3 @@
#![feature(if_let)]
#![feature(slicing_syntax)]
extern crate irc;

View file

@ -1,4 +1,3 @@
#![feature(if_let)]
#![feature(slicing_syntax)]
extern crate irc;

View file

@ -1,4 +1,4 @@
#![feature(if_let, slicing_syntax)]
#![feature(slicing_syntax)]
extern crate irc;
use std::default::Default;

View file

@ -292,7 +292,7 @@ mod test {
}
#[test]
#[should_fail]
#[should_fail(message = "All specified nicknames were in use.")]
fn ran_out_of_nicknames() {
let value = ":irc.pdgn.co 433 * test :Nickname is already in use.\r\n\
:irc.pdgn.co 433 * test2 :Nickname is already in use.\r\n";