diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2021-05-23 21:10:17 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2021-05-23 21:10:17 +0200 |
| commit | e3bf4b10f8086c25c07ff21f7b8250efd853961a (patch) | |
| tree | 96c23a96664366f4d51436c2cfacf92ebc265085 | |
| parent | 8d906890893a9940977e408a1fb83676c24e2e47 (diff) | |
1 line comment
| -rw-r--r-- | domain/src/test/java/mancala/domain/BowlTest.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/domain/src/test/java/mancala/domain/BowlTest.java b/domain/src/test/java/mancala/domain/BowlTest.java index aa40640..7d66991 100644 --- a/domain/src/test/java/mancala/domain/BowlTest.java +++ b/domain/src/test/java/mancala/domain/BowlTest.java @@ -1,23 +1,11 @@ package mancala.domain; -// Your test class should be in the same -// package as the class you're testing. -// Usually the test directory mirrors the -// main directory 1:1. So for each class in src/main, -// there is a class in src/test. - -// Import our test dependencies. We import the Test-attribute -// and a set of assertions. - import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.*; class BowlTest { - // Define a test starting with @Test. The test is like - // a small main method - you need to setup everything - // and you can write any arbitrary Java code in it. protected void traverseAndCheckBoard(Bowl currentBowl, int position) { Bowl initialBowl = currentBowl; @@ -28,7 +16,7 @@ class BowlTest { // if looping around the board, position = ((start+traversed) - total) // in other words the amount of bowls that the absolute position is greater than the board's total bowls // - // Only relevant during construction + // Only relevant to check construction btw, also only checking in the case where there are 14 bowls currentPosition = ((traversedCount + position) - 14); } else // Or just use normal position |
