Skip to content

Commit

Permalink
added small files for pr
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-gannaway-sonarsource committed Aug 26, 2024
1 parent 475e283 commit d7baf3c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/sonarsource/sonarsource_demos/CustomMath.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package sonarsource.sonarsource_demos;

public class CustomMath {
public int multiply(int a, int b) {
return a * b;
}

}
12 changes: 12 additions & 0 deletions src/test/java/sonarsource/sonarsource_demos/CustomMathTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package sonarsource.sonarsource_demos;

import junit.framework.TestCase;

public class CustomMathTest extends TestCase {

public void testF() {
CustomMath c = new CustomMath();
assertEquals(15, c.multiply(3,5));
}

}

0 comments on commit d7baf3c

Please sign in to comment.