Skip to content

Commit

Permalink
added test for the GitHub issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ikuraj committed Sep 6, 2012
1 parent be69778 commit 03be2c5
Showing 1 changed file with 26 additions and 0 deletions.
Expand Up @@ -44,6 +44,32 @@ class IssuesTests {

import testProjectSetup._

@Test
def testGitHubIssueNo2() {
Activator.getDefault.getPreferenceStore.setValue(InSynthConstants.CodeStyleParenthesesPropertyString,
InSynthConstants.CodeStyleParenthesesClassic)

{
Activator.getDefault.getPreferenceStore.setValue(InSynthConstants.CodeStyleSimpleApplicationNameTransformPropertyString,
false)

val oraclePos8 = List("this.$hash$hash()")
val checkersPos8 = List(CheckContains(oraclePos8))

checkCompletions("github/IssueNo2.scala")(checkersPos8)
}

{
Activator.getDefault.getPreferenceStore.setValue(InSynthConstants.CodeStyleSimpleApplicationNameTransformPropertyString,
true)

val oraclePos8 = List("this.##()")
val checkersPos8 = List(CheckContains(oraclePos8))

checkCompletions("github/IssueNo2.scala")(checkersPos8)
}
}

@Test
def testGitHubIssueNo4() {
// TODO re-check when alternative syntax generation is implemented (we want just println)
Expand Down

0 comments on commit 03be2c5

Please sign in to comment.