commit changed minmax

This commit is contained in:
valerpan 2026-07-30 14:54:48 +03:00
parent d175659bbc
commit 2651208ca9
5 changed files with 19 additions and 8 deletions

View File

@ -4,10 +4,7 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="584a2518-0bc5-4360-bc03-3335f62346fb" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/test/java/PositiveCalculatorTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/PositiveCalculatorTest.java" afterDir="false" />
</list>
<list default="true" id="584a2518-0bc5-4360-bc03-3335f62346fb" name="Changes" comment="commit unit-develop" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -38,7 +35,7 @@
"kotlin-language-version-configured": "true"
}
}]]></component>
<component name="RunManager" selected="TestNG.PositiveCalculatorTest.positiveTest">
<component name="RunManager" selected="TestNG.NegativeCalculatorTest.negativeTest">
<configuration name="NegativeCalculatorTest.negativeTest" type="TestNG" temporary="true" nameIsGenerated="true">
<module name="unit-test" />
<option name="PACKAGE_NAME" value="" />
@ -65,8 +62,8 @@
</configuration>
<recent_temporary>
<list>
<item itemvalue="TestNG.PositiveCalculatorTest.positiveTest" />
<item itemvalue="TestNG.NegativeCalculatorTest.negativeTest" />
<item itemvalue="TestNG.PositiveCalculatorTest.positiveTest" />
</list>
</recent_temporary>
</component>
@ -78,6 +75,19 @@
<option name="presentableId" value="Default" />
<updated>1785351688906</updated>
</task>
<task id="LOCAL-00001" summary="commit unit-develop">
<option name="closed" value="true" />
<created>1785410404811</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1785410404811</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="commit unit-develop" />
<option name="LAST_COMMIT_MESSAGE" value="commit unit-develop" />
</component>
</project>

View File

@ -12,7 +12,8 @@ public class NegativeCalculatorTest {
return new Object [][]{
{"+", String.valueOf(Integer.MAX_VALUE), "1"},
{"+", String.valueOf(Integer.MIN_VALUE), "-1"},
{"*", String.valueOf(Integer.MAX_VALUE), "2"},
{"*", String.valueOf((double)Integer.MAX_VALUE+1), "2"},
{"*", String.valueOf((double)Integer.MIN_VALUE-1), "2"},
{"/", "10", "0"},

View File

@ -28,7 +28,7 @@ public class PositiveCalculatorTest {
{"+", String.valueOf(Integer.MAX_VALUE - 1), "1", (double)Integer.MAX_VALUE},
{"+", String.valueOf(Integer.MIN_VALUE + 1), "-1", (double)Integer.MIN_VALUE},
{"*", String.valueOf(Integer.MAX_VALUE), "1", (double)Integer.MAX_VALUE},
{"*", String.valueOf(Integer.MIN_VALUE), "1", (double)Integer.MIN_VALUE},
{"/", String.valueOf(Integer.MAX_VALUE), "2", (double)Integer.MAX_VALUE/2},
};
}