fix message parsing without prefix
[cloogle-irc.git] / test.icl
index d9498b4..f402f99 100644 (file)
--- a/test.icl
+++ b/test.icl
@@ -1,5 +1,12 @@
 module test
 
+
+import gast
 import IRC
 
-Start = "hi"
+derive ggen IRCMessage
+
+Start = Test [] pParsePrint
+
+pParsePrint :: IRCMessage -> Bool
+pParsePrint a = toString (parseIRCMessage (toString a)) == toString a