Skip to content

Commit

Permalink
Test Added
Browse files Browse the repository at this point in the history
  • 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.
21 changes: 21 additions & 0 deletions src/test/java/seedu/address/flashcard/CardIdTest.java
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());
}
}

0 comments on commit af2675e

Please sign in to comment.