diff --git a/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt b/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt index 0ef6ff3..a6362c6 100644 --- a/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt +++ b/app/src/test/java/com/coderabbit/app/calculator/CalculatorTest.kt @@ -25,6 +25,12 @@ class CalculatorTest { assertEquals(calculator.divide(4,2) ,2) } + @Test + fun `test divide function equals second phase`() { + val calculator = Calculator() + assertEquals(calculator.add(0,0) ,0) + } + @Test fun `test divide function che divide`() { val calculator = Calculator() @@ -33,6 +39,14 @@ class CalculatorTest { } } + @Test + fun `test divide function che divide thirteen`() { + val calculator = Calculator() + assertThrows(ArithmeticException::class.java){ + calculator.divide(13,0) + } + } + @Test fun `test divide function che divide zero`() { val calculator = Calculator() diff --git a/local.properties b/local.properties index 0a7f891..893fb45 100644 --- a/local.properties +++ b/local.properties @@ -4,5 +4,5 @@ # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -#Mon Jul 28 14:37:01 AZT 2025 -sdk.dir=/Users/namiggadirov/Library/Android/sdk +#Mon Jul 28 18:50:42 AZT 2025 +sdk.dir=/Users/namiqgadirov/Library/Android/sdk