Remove prints

This commit is contained in:
Sad Ellie 2023-05-17 12:21:09 +03:00
parent 52a1a5b4d5
commit d0b09beb7d
2 changed files with 1 additions and 4 deletions

View File

@ -301,8 +301,6 @@ private fun BigDecimal.factorial(): BigDecimal {
if (this.remainder(BigDecimal.ONE).compareTo(BigDecimal.ZERO) != 0) throw ExpressionException.FactorialCalculation()
if (this < BigDecimal.ZERO) throw ExpressionException.FactorialCalculation()
println("got $this")
var expr = this
for (i in 1 until this.toInt()) {
expr *= BigDecimal(i)

View File

@ -34,8 +34,7 @@ fun <T : Throwable?> assertExprFail(
radianMode: Boolean = true
) {
Assert.assertThrows(expectedThrowable) {
val calculated = Expression(expr, radianMode = radianMode).calculate()
println(calculated)
Expression(expr, radianMode = radianMode).calculate()
}
}