forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oscar-B-Liang
committed
Sep 25, 2019
1 parent
f76e008
commit af2675e
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package seedu.address.flashcard; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
public class CardIdTest { | ||
|
||
private CardId id1 = new CardId(); | ||
private CardId id2 = new CardId(); | ||
private CardId id3 = new CardId(); | ||
private CardId id4 = new CardId(); | ||
|
||
@Test | ||
public void generateIdTest() { | ||
assertEquals(0, id1.getIdentityNumber()); | ||
assertEquals(1, id2.getIdentityNumber()); | ||
assertEquals(2, id3.getIdentityNumber()); | ||
assertEquals(3, id4.getIdentityNumber()); | ||
} | ||
} |