summaryrefslogtreecommitdiffstats
path: root/test/Test.vala
diff options
context:
space:
mode:
Diffstat (limited to 'test/Test.vala')
-rw-r--r--test/Test.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Test.vala b/test/Test.vala
index ce5da6d..5d71095 100644
--- a/test/Test.vala
+++ b/test/Test.vala
@@ -1,7 +1,13 @@
namespace Eva {
class Test {
public static int main(string[] args) {
- Eva.Long term = new Eva.Long(42);
+ MainLoop main = new MainLoop();
+
+ Eva.PacketHandler handler = new Eva.PacketHandler(new UnixInputStream(3, true), new UnixOutputStream(4, true), 4);
+ handler.received_term.connect((term) => {stdout.printf("%s\n", term.to_string()); handler.send(term); main.quit();});
+ handler.start();
+
+ main.run();
return 0;
}