Skip to content

Commit 4bc0e8d

Browse files
Denis FokinDenis Fokin
authored andcommitted
Test has been moved
1 parent c0ca6c0 commit 4bc0e8d

2 files changed

Lines changed: 14 additions & 23 deletions

File tree

utbot-framework/src/test/kotlin/org/utbot/examples/math/OverflowAsErrorTest.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,18 @@ internal class OverflowAsErrorTest : AbstractTestCaseGeneratorTest(
269269
)
270270
}
271271
}
272+
273+
@Test
274+
fun testIntOverflowWithoutError() {
275+
check(
276+
OverflowExamples::intOverflow,
277+
eq(6),
278+
{ x, _, r -> x * x * x <= 0 && x <= 0 && r == 0 },
279+
{ x, _, r -> x * x * x > 0 && x <= 0 && r == 0 }, // through overflow
280+
{ x, y, r -> x * x * x > 0 && x > 0 && y != 10 && r == 0 },
281+
{ x, y, r -> x * x * x > 0 && x > 0 && y == 10 && r == 1 },
282+
{ x, y, r -> x * x * x <= 0 && x > 0 && y != 20 && r == 0 }, // through overflow
283+
{ x, y, r -> x * x * x <= 0 && x > 0 && y == 20 && r == 2 } // through overflow
284+
)
285+
}
272286
}

utbot-framework/src/test/kotlin/org/utbot/examples/math/OverflowExamplesTest.kt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)