Updated examples for if let addition, and a failure test with a message.
This commit is contained in:
parent
dcab79bdec
commit
bdb04d693b
5 changed files with 2 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
#![feature(if_let)]
|
||||
#![feature(slicing_syntax)]
|
||||
extern crate irc;
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#![feature(if_let)]
|
||||
#![feature(slicing_syntax)]
|
||||
extern crate irc;
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#![feature(if_let)]
|
||||
#![feature(slicing_syntax)]
|
||||
extern crate irc;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(if_let, slicing_syntax)]
|
||||
#![feature(slicing_syntax)]
|
||||
extern crate irc;
|
||||
|
||||
use std::default::Default;
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue