Skip to content

Commit 2f1ebdd

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Suppress some tests under J2KT to address failures from cl/864303970 + cl/863485621.
RELNOTES=n/a PiperOrigin-RevId: 864887487
1 parent 56ee117 commit 2f1ebdd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

android/guava-tests/test/com/google/common/math/DoubleMathTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ public void testFuzzyCompareBadTolerance() {
653653

654654
@GwtIncompatible // DoubleMath.mean
655655
@SuppressWarnings("deprecation") // test of deprecated method
656+
@J2ktIncompatible // b/480968849
656657
public void testMean_doubleVarargs() {
657658
assertThat(DoubleMath.mean(1.1, -2.2, 4.4, -8.8)).isWithin(1.0e-10).of(-1.375);
658659
assertThat(DoubleMath.mean(1.1)).isWithin(1.0e-10).of(1.1);
@@ -682,6 +683,7 @@ public void testMean_emptyVarargs() {
682683

683684
@GwtIncompatible // DoubleMath.mean
684685
@SuppressWarnings("deprecation") // test of deprecated method
686+
@J2ktIncompatible // b/480968849
685687
public void testMean_doubleIterable() {
686688
assertThat(DoubleMath.mean(ImmutableList.of(1.1, -2.2, 4.4, -8.8)))
687689
.isWithin(1.0e-10)
@@ -697,6 +699,7 @@ public void testMean_doubleIterable() {
697699

698700
@GwtIncompatible // DoubleMath.mean
699701
@SuppressWarnings("deprecation") // test of deprecated method
702+
@J2ktIncompatible // b/480968849
700703
public void testMean_intIterable() {
701704
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88))).isWithin(1.0e-10).of(-13.75);
702705
assertThat(DoubleMath.mean(ImmutableList.of(11))).isWithin(1.0e-10).of(11);
@@ -706,6 +709,7 @@ public void testMean_intIterable() {
706709

707710
@GwtIncompatible // DoubleMath.mean
708711
@SuppressWarnings("deprecation") // test of deprecated method
712+
@J2ktIncompatible // b/480968849
709713
public void testMean_longIterable() {
710714
assertThat(DoubleMath.mean(ImmutableList.of(11L, -22L, 44L, -88L)))
711715
.isWithin(1.0e-10)
@@ -716,6 +720,7 @@ public void testMean_longIterable() {
716720

717721
@GwtIncompatible // DoubleMath.mean
718722
@SuppressWarnings("deprecation") // test of deprecated method
723+
@J2ktIncompatible // b/480968849
719724
public void testMean_intIterator() {
720725
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator()))
721726
.isWithin(1.0e-10)
@@ -728,6 +733,7 @@ public void testMean_intIterator() {
728733

729734
@GwtIncompatible // DoubleMath.mean
730735
@SuppressWarnings("deprecation") // test of deprecated method
736+
@J2ktIncompatible // b/480968849
731737
public void testMean_longIterator() {
732738
assertThat(DoubleMath.mean(ImmutableList.of(11L, -22L, 44L, -88L).iterator()))
733739
.isWithin(1.0e-10)

guava-tests/test/com/google/common/math/DoubleMathTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ public void testFuzzyCompareBadTolerance() {
653653

654654
@GwtIncompatible // DoubleMath.mean
655655
@SuppressWarnings("deprecation") // test of deprecated method
656+
@J2ktIncompatible // b/480968849
656657
public void testMean_doubleVarargs() {
657658
assertThat(DoubleMath.mean(1.1, -2.2, 4.4, -8.8)).isWithin(1.0e-10).of(-1.375);
658659
assertThat(DoubleMath.mean(1.1)).isWithin(1.0e-10).of(1.1);
@@ -682,6 +683,7 @@ public void testMean_emptyVarargs() {
682683

683684
@GwtIncompatible // DoubleMath.mean
684685
@SuppressWarnings("deprecation") // test of deprecated method
686+
@J2ktIncompatible // b/480968849
685687
public void testMean_doubleIterable() {
686688
assertThat(DoubleMath.mean(ImmutableList.of(1.1, -2.2, 4.4, -8.8)))
687689
.isWithin(1.0e-10)
@@ -697,6 +699,7 @@ public void testMean_doubleIterable() {
697699

698700
@GwtIncompatible // DoubleMath.mean
699701
@SuppressWarnings("deprecation") // test of deprecated method
702+
@J2ktIncompatible // b/480968849
700703
public void testMean_intIterable() {
701704
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88))).isWithin(1.0e-10).of(-13.75);
702705
assertThat(DoubleMath.mean(ImmutableList.of(11))).isWithin(1.0e-10).of(11);
@@ -706,6 +709,7 @@ public void testMean_intIterable() {
706709

707710
@GwtIncompatible // DoubleMath.mean
708711
@SuppressWarnings("deprecation") // test of deprecated method
712+
@J2ktIncompatible // b/480968849
709713
public void testMean_longIterable() {
710714
assertThat(DoubleMath.mean(ImmutableList.of(11L, -22L, 44L, -88L)))
711715
.isWithin(1.0e-10)
@@ -716,6 +720,7 @@ public void testMean_longIterable() {
716720

717721
@GwtIncompatible // DoubleMath.mean
718722
@SuppressWarnings("deprecation") // test of deprecated method
723+
@J2ktIncompatible // b/480968849
719724
public void testMean_intIterator() {
720725
assertThat(DoubleMath.mean(ImmutableList.of(11, -22, 44, -88).iterator()))
721726
.isWithin(1.0e-10)
@@ -728,6 +733,7 @@ public void testMean_intIterator() {
728733

729734
@GwtIncompatible // DoubleMath.mean
730735
@SuppressWarnings("deprecation") // test of deprecated method
736+
@J2ktIncompatible // b/480968849
731737
public void testMean_longIterator() {
732738
assertThat(DoubleMath.mean(ImmutableList.of(11L, -22L, 44L, -88L).iterator()))
733739
.isWithin(1.0e-10)

0 commit comments

Comments
 (0)