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 {
65
65
66
66
// Assert
67
67
assertThat ((double )sentiment .getMagnitude ()).isGreaterThan (0.0 );
68
- assertThat ((double )sentiment .getPolarity ()).isEqualTo ( 1 .0 );
68
+ assertThat ((double )sentiment .getPolarity ()).isGreaterThan ( 0 .0 );
69
69
}
70
70
71
71
@ Test public void analyzeSentiment_returnNegative () throws Exception {
@@ -76,7 +76,7 @@ public class AnalyzeIT {
76
76
77
77
// Assert
78
78
assertThat ((double )sentiment .getMagnitude ()).isGreaterThan (0.0 );
79
- assertThat ((double )sentiment .getPolarity ()).isEqualTo (- 1 .0 );
79
+ assertThat ((double )sentiment .getPolarity ()).isLessThan ( 0 .0 );
80
80
}
81
81
82
82
@ Test public void analyzeSyntax_partOfSpeech () throws Exception {
You can’t perform that action at this time.
0 commit comments