diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/streams.check | 1 | ||||
-rw-r--r-- | test/files/run/streams.scala | 5 | ||||
-rwxr-xr-x | test/scalatest | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/test/files/run/streams.check b/test/files/run/streams.check index d11eb7f67a..f36b719ac1 100644 --- a/test/files/run/streams.check +++ b/test/files/run/streams.check @@ -15,4 +15,5 @@ Stream() Stream(1, 2) Stream() +99999 65536 diff --git a/test/files/run/streams.scala b/test/files/run/streams.scala index 408affe306..1844fdb6ab 100644 --- a/test/files/run/streams.scala +++ b/test/files/run/streams.scala @@ -22,8 +22,11 @@ object Test extends Application { println(s2.dropWhile(_ > 0)) println + val s3 = Stream.range(1, 100000) + println(s3.length) + // ticket #153 def powers(x: Int) = if ((x&(x-1)) == 0) Some(x) else None - val s3 = Stream.range(1, 100000) println(s3.flatMap(powers).reverse.head) + } diff --git a/test/scalatest b/test/scalatest index c12a3ec1c9..a340e49b88 100755 --- a/test/scalatest +++ b/test/scalatest @@ -742,7 +742,8 @@ if [ "$USEFSC" = "true" ]; then else SCALAC_CMD="${BIN_DIR}scalac"; fi; -if [ ! -x "$SCALAC_CMD" ]; then + +if [ ! -x `which $SCALAC_CMD` ]; then printf_failure "Missing command \"$SCALAC_CMD\"; run 'ant <target>'.\\n"; exit 1; fi; |