Permalink
Browse files

Merge pull request #130 from dotta/issue/pass-encoding-to-tycho-test-…

…task-124

Set file encoding to `UTF-8` for tests execution in Tycho
  • Loading branch information...
2 parents 566577b + e818b54 commit 15e876a07d5b7119e8905c5960f67f99fdbfe831 @dotta dotta committed May 1, 2013
@@ -301,20 +301,18 @@ object a {
"""
runTest("eval-test/wrongInstrumentationForLoops.sc", initial, expected)
}
-
- @Ignore("Unfortunately this tests fails on MacOSX when executed from the command line, while it works fine when executed inside Eclipse. " +
- "This test was created while working on a fix for the encoding issue reported in #124. We'll keep the mentioned ticket opened until this test is fixed")
+
@Test
def unicodeCharactersAreAllowed() {
val initial = """
object Snowman {
- def ☃ = "yes, this is a snowman"
+ def ☃ : AnyRef = "yes, this is a snowman"
println("%s".format(☃))
}
"""
val expected = """
object Snowman {
- def ☃ = "yes, this is a snowman" //> ☃ : => java.lang.String
+ def ☃ : AnyRef = "yes, this is a snowman" //> ☃ : => AnyRef
println("%s".format(☃)) //> yes, this is a snowman
}
"""
View
@@ -18,6 +18,11 @@
<name>Scala Worksheet</name>
<packaging>pom</packaging>
+ <properties>
+ <tycho.test.encoding>-Dfile.encoding=UTF-8</tycho.test.encoding>
+ <tycho.test.jvmArgs>-Xmx800m -XX:MaxPermSize=256m -Dsdtcore.headless ${tycho.test.encoding} ${tycho.test.weaving} ${tycho.test.OSspecific}</tycho.test.jvmArgs>
+ </properties>
+
<modules>
<module>org.scalaide.worksheet.runtime.library</module>
<module>org.scalaide.worksheet</module>

0 comments on commit 15e876a

Please sign in to comment.