Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #4097: Adding tests for math utils #5627

Merged
merged 11 commits into from
Jan 15, 2025
Prev Previous commit
Next Next commit
formatting
manas-yu committed Dec 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit d9e7554f3bc3710b71d271b731f8245973dd4a4e
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.oppia.android.testing.math

import android.annotation.SuppressLint
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import org.junit.runner.RunWith
@@ -204,4 +203,4 @@ class FractionSubjectTest {
hasDenominatorThat().isEqualTo(0)
}
}
}
}
Original file line number Diff line number Diff line change
@@ -196,4 +196,4 @@ class MathEquationSubjectTest {
)
.build()
}
}
}
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@ package org.oppia.android.testing.math
import android.annotation.SuppressLint
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import org.oppia.android.app.model.Fraction
import org.oppia.android.app.model.Real
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import org.oppia.android.app.model.Fraction
import org.oppia.android.app.model.Real

/** Tests for [RealSubject]. */
@SuppressLint("CheckResult")
@@ -179,7 +179,6 @@ class RealSubjectTest {

RealSubject.assertThat(real).isNotNull()
RealSubject.assertThat(real).isNotEqualTo(Real.getDefaultInstance())

}

private fun <T : Throwable> assertThrows(