summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-08 14:46:32 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-08 14:46:32 +0000
commitf45ea36183741823c69ee47ef252a68b9dce5dd7 (patch)
tree1c6dfcf0e7679bd36a8308ebdc8da66edebf4cb4 /test/files
parentbaa83f11ee666ff98ddf20dd10a0e8c5a86ee220 (diff)
downloadscala-f45ea36183741823c69ee47ef252a68b9dce5dd7.tar.gz
scala-f45ea36183741823c69ee47ef252a68b9dce5dd7.tar.bz2
scala-f45ea36183741823c69ee47ef252a68b9dce5dd7.zip
Fixed #368:
- added assertions to cause failure earlier - added test case - use BatchSourceFile length (characters) rather than file length (bytes)
Diffstat (limited to 'test/files')
-rw-r--r--test/files/script/utf8.check2
-rwxr-xr-xtest/files/script/utf8.scala26
2 files changed, 28 insertions, 0 deletions
diff --git a/test/files/script/utf8.check b/test/files/script/utf8.check
new file mode 100644
index 0000000000..29dc0518ff
--- /dev/null
+++ b/test/files/script/utf8.check
@@ -0,0 +1,2 @@
+QWERTY
+ЙЦУКЕН
diff --git a/test/files/script/utf8.scala b/test/files/script/utf8.scala
new file mode 100755
index 0000000000..a47828ad37
--- /dev/null
+++ b/test/files/script/utf8.scala
@@ -0,0 +1,26 @@
+#!/bin/sh
+# fact - A simple Scala script that prints out the factorial of
+# the argument specified on the command line.
+
+cygwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+esac
+
+SOURCE="$0";
+if $cygwin; then
+ if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ;
+then
+ format=mixed
+ else
+ format=windows
+ fi
+ SOURCE=`cygpath --$format "$SOURCE"`;
+fi
+
+exec scala -nocompdaemon "$SOURCE" "$@"
+!#
+
+/*Comment Комментарий*/
+Console.println("QWERTY");
+Console.println("ЙЦУКЕН");