Skip to content

Commit

Permalink
Merge pull request #324 from GoogleCloudPlatform/tswast-language
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot authored Sep 1, 2016
2 parents e861637 + a6e09d6 commit ae4fb40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class AnalyzeIT {

// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
assertThat((double)sentiment.getPolarity()).isEqualTo(1.0);
assertThat((double)sentiment.getPolarity()).isGreaterThan(0.0);
}

@Test public void analyzeSentiment_returnNegative() throws Exception {
Expand All @@ -76,7 +76,7 @@ public class AnalyzeIT {

// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
assertThat((double)sentiment.getPolarity()).isEqualTo(-1.0);
assertThat((double)sentiment.getPolarity()).isLessThan(0.0);
}

@Test public void analyzeSyntax_partOfSpeech() throws Exception {
Expand Down

0 comments on commit ae4fb40

Please sign in to comment.