summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-06-16 12:09:27 +0000
committerLex Spoon <lex@lexspoon.org>2006-06-16 12:09:27 +0000
commit975a608b36a74200d7f0a05844c1284a5b3f0450 (patch)
tree8b190718fcc58b88d8f44714ac6693ea1b895675 /test
parenta00b0c60a7fae1f7e1cfb305fd95aad7d73ae5a0 (diff)
downloadscala-975a608b36a74200d7f0a05844c1284a5b3f0450.tar.gz
scala-975a608b36a74200d7f0a05844c1284a5b3f0450.tar.bz2
scala-975a608b36a74200d7f0a05844c1284a5b3f0450.zip
- changed the unicode method identifier to be a...
- changed the unicode method identifier to be a valid; Java identifiers must start with a letter - re-enabled the test's invocation of this method
Diffstat (limited to 'test')
-rw-r--r--test/files/run/literals.check1
-rw-r--r--test/files/run/literals.scala10
2 files changed, 6 insertions, 5 deletions
diff --git a/test/files/run/literals.check b/test/files/run/literals.check
index 5e848f9a47..b2a96ecd3f 100644
--- a/test/files/run/literals.check
+++ b/test/files/run/literals.check
@@ -63,3 +63,4 @@ test 1.asInstanceOf[double] == 1.0 was successful
test 1l.asInstanceOf[double] == 1.0 was successful
test "".length() was successful
+test ggg == 3 was successful
diff --git a/test/files/run/literals.scala b/test/files/run/literals.scala
index b0077aec9d..50da72b655 100644
--- a/test/files/run/literals.scala
+++ b/test/files/run/literals.scala
@@ -12,7 +12,7 @@ object Test {
def \u03b1\u03c1\u03b5\u03c4\u03b7 = "alpha rho epsilon tau eta";
case class GGG(i:int) {
- def \u21a1\u21a1( that:GGG ) = that;
+ def \u03b1\u03b1( that:GGG ) = i+that.i;
}
def check_success[a](name: String, closure: => a, expected: a): Unit = {
Console.print("test " + name);
@@ -126,10 +126,10 @@ object Test {
Console.println;
check_success("\"\".length()", "\u001a".length(), 1);
-/*
- val ggg = GGG( 1 ) \u21a1\u21a1 GGG( 2 );
- check_success("ggg == GGG( 2 )", ggg, GGG( 2 ));
-*/
+
+ val ggg = GGG( 1 ) \u03b1\u03b1 GGG( 2 );
+ check_success("ggg == 3", ggg, 3);
+
}
}