diff options
author | stenman <stenman@epfl.ch> | 2003-07-08 17:07:30 +0000 |
---|---|---|
committer | stenman <stenman@epfl.ch> | 2003-07-08 17:07:30 +0000 |
commit | bf64b80e8e904515528b9114b1ca018a63ce2450 (patch) | |
tree | 733f6d17ce328cb89e827f3922e8e5607b0d449e /test | |
parent | 981a0d142c0bec9d34bc1ddfff50658ecef82ff1 (diff) | |
download | scala-bf64b80e8e904515528b9114b1ca018a63ce2450.tar.gz scala-bf64b80e8e904515528b9114b1ca018a63ce2450.tar.bz2 scala-bf64b80e8e904515528b9114b1ca018a63ce2450.zip |
Functional Queues
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/iq.check | 1 | ||||
-rw-r--r-- | test/files/run/iq.scala | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/iq.check b/test/files/run/iq.check new file mode 100644 index 0000000000..53a90bffae --- /dev/null +++ b/test/files/run/iq.check @@ -0,0 +1 @@ +Empty diff --git a/test/files/run/iq.scala b/test/files/run/iq.scala new file mode 100644 index 0000000000..67a1a41296 --- /dev/null +++ b/test/files/run/iq.scala @@ -0,0 +1,25 @@ +/* $Id$ */ + +object iq { + def main = { + val q:scala.collection.immutable.Queue[Int] = + scala.collection.immutable.Queue.Empty; + if(q.isEmpty) { + java.lang.System.out.println("Empty"); + } + + val q2 = q + 42; + + if(q2.isEmpty) { + java.lang.System.out.println("Empty"); + } + + } +} + +object Test { + def main(args: Array[String]): Unit = { + iq.main; + (); + } +} |