Permalink
Browse files

Some Io stuff that i forgot to commit yonks ago.

  • Loading branch information...
1 parent ae87511 commit f37c3d29106755433093aaad4a7226a5047b5c04 @sermoa committed Jul 5, 2011
Showing with 17 additions and 3 deletions.
  1. +13 −0 week2-io/futures.io
  2. +1 −3 week2-io/list2d.io
  3. +3 −0 week2-io/testFramework.io
View
@@ -0,0 +1,13 @@
+one := Object clone
+two := Object clone
+
+one future := method(wait(2); Date now)
+two future := method(wait(2); Date now)
+
+first := one @future
+second := two @future
+
+writeln(Date now)
+
+writeln ("First finished at ", first)
+writeln ("Second finished at ", second)
View
@@ -1,6 +1,4 @@
-Object shouldEqual := method(expected,
- if(self == expected, "." print, ("Expected " .. self .. " to equal " .. expected) println)
-)
+require('testFramework.io')
List2d := Object clone
List2d items := list()
@@ -0,0 +1,3 @@
+Object shouldEqual := method(expected,
+ if(self == expected, "." print, ("Expected " .. self .. " to equal " .. expected) println)
+)

0 comments on commit f37c3d2

Please sign in to comment.