File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
language/analysis/src/test/java/com/google/cloud/language/samples Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public class AnalyzeIT {
6565
6666 // Assert
6767 assertThat ((double )sentiment .getMagnitude ()).isGreaterThan (0.0 );
68- assertThat ((double )sentiment .getPolarity ()).isEqualTo ( 1 .0 );
68+ assertThat ((double )sentiment .getPolarity ()).isGreaterThan ( 0 .0 );
6969 }
7070
7171 @ Test public void analyzeSentiment_returnNegative () throws Exception {
@@ -76,7 +76,7 @@ public class AnalyzeIT {
7676
7777 // Assert
7878 assertThat ((double )sentiment .getMagnitude ()).isGreaterThan (0.0 );
79- assertThat ((double )sentiment .getPolarity ()).isEqualTo (- 1 .0 );
79+ assertThat ((double )sentiment .getPolarity ()).isLessThan ( 0 .0 );
8080 }
8181
8282 @ Test public void analyzeSyntax_partOfSpeech () throws Exception {
You can’t perform that action at this time.
0 commit comments