plz
Some checks failed
CI / Gradle / build (push) Failing after 15m59s

This commit is contained in:
2026-05-29 09:58:51 +03:00
commit 8dc151af96
7 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package com.example;
public class App {
public static int add(int a, int b) { return a + b; }
public static int sub(int a, int b) { return a - b; }
public static int mul(int a, int b) { return a * b; }
public static void main(String[] args) {
System.out.println("CI ready");
System.out.println("2 + 3 = " + add(2, 3));
}
}

View File

@@ -0,0 +1,10 @@
package com.example;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class AppTest {
@Test void testAdd() { assertEquals(5, App.add(2, 3)); }
@Test void testSub() { assertEquals(1, App.sub(3, 2)); }
@Test void testMul() { assertEquals(6, App.mul(2, 3)); }
}