summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-01-26 08:37:23 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-01-26 08:37:23 +0000
commit78a48c46cf3727dd06179cb1360b2f9057647042 (patch)
tree01f418fab8ee1cd61c5a6a891bdce09cde142098 /test/files/pos
parent78007ac467c9d6e88ae183a9126772829072704c (diff)
downloadscala-78a48c46cf3727dd06179cb1360b2f9057647042.tar.gz
scala-78a48c46cf3727dd06179cb1360b2f9057647042.tar.bz2
scala-78a48c46cf3727dd06179cb1360b2f9057647042.zip
Merge branch 'work'
Conflicts: src/library/scala/concurrent/SyncVar.scala
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/scan.scala23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/files/pos/scan.scala b/test/files/pos/scan.scala
deleted file mode 100644
index 47e0a7d976..0000000000
--- a/test/files/pos/scan.scala
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-object Test {
-
- def main(args: Array[String]) {
- val lst = List(1, 2, 3, 4, 5)
-
- assert(lst.scanLeft(0)(_ + _) == List(0, 1, 3, 6, 10, 15))
- assert(lst.scanRight(0)(_ + _) == List(15, 14, 12, 9, 5, 0))
-
- val emp = List[Int]()
- assert(emp.scanLeft(0)(_ + _) == List(0))
- assert(emp.scanRight(0)(_ + _) == List(0))
-
- val stream = Stream(1, 2, 3, 4, 5)
- assert(stream.scanLeft(0)(_ + _) == Stream(0, 1, 3, 6, 10, 15))
-
- assert(Stream.from(1).scanLeft(0)(_ + _).take(5) == Stream(0, 1, 3, 6, 10))
- }
-
-} \ No newline at end of file