Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,18 @@ internal class OverflowAsErrorTest : AbstractTestCaseGeneratorTest(
)
}
}

@Test
fun testIntOverflowWithoutError() {
check(
OverflowExamples::intOverflow,
eq(6),
{ x, _, r -> x * x * x <= 0 && x <= 0 && r == 0 },
{ x, _, r -> x * x * x > 0 && x <= 0 && r == 0 }, // through overflow
{ x, y, r -> x * x * x > 0 && x > 0 && y != 10 && r == 0 },
{ x, y, r -> x * x * x > 0 && x > 0 && y == 10 && r == 1 },
{ x, y, r -> x * x * x <= 0 && x > 0 && y != 20 && r == 0 }, // through overflow
{ x, y, r -> x * x * x <= 0 && x > 0 && y == 20 && r == 2 } // through overflow
)
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package org.utbot.examples.mixed

import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.utbot.examples.AbstractTestCaseGeneratorTest
import org.utbot.examples.StaticInitializerExample
import org.utbot.examples.eq
import org.junit.jupiter.api.Test

@Disabled("Unknown build failure")
internal class StaticInitializerExampleTest : AbstractTestCaseGeneratorTest(testClass = StaticInitializerExample::class) {
@Test
fun testPositive() {
Expand Down