Permalink
Browse files

Added tests from qsheets

  • Loading branch information...
1 parent 8b0e282 commit afbcf12bfeb60affd8d603eb3056413a8d43cdef @martynsmith committed Jan 20, 2013
Showing with 28 additions and 0 deletions.
  1. +28 −0 test/parse-line.js
View
@@ -51,6 +51,34 @@ describe("irc.parseMessage", function() {
rawCommand: "PRIVMSG",
commandType: "normal",
args: [ "#test", ":^:^:" ]
+ },
+ ":some.irc.net 324 webuser #channel +Cnj 5:10": {
+ prefix: "some.irc.net",
+ server: "some.irc.net",
+ command: "rpl_channelmodeis",
+ rawCommand: "324",
+ commandType: "reply",
+ args: [ "webuser", "#channel", "+Cnj", "5:10" ]
+ },
+ ":nick!user@host QUIT :Ping timeout: 252 seconds": {
+ prefix: "nick!user@host",
+ nick: "nick",
+ user: "user",
+ host: "host",
+ command: "QUIT",
+ rawCommand: "QUIT",
+ commandType: "normal",
+ args: [ "Ping timeout: 252 seconds" ]
+ },
+ ":nick!user@host PRIVMSG #channel :so : colons: :are :: not a problem ::::": {
+ prefix: "nick!user@host",
+ nick: "nick",
+ user: "user",
+ host: "host",
+ command: "PRIVMSG",
+ rawCommand: "PRIVMSG",
+ commandType: "normal",
+ args: [ "#channel", "so : colons: :are :: not a problem ::::" ]
}
};

0 comments on commit afbcf12

Please sign in to comment.