This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
7 changed files
with
77 additions
and
14 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
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
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,36 @@ | ||
package eu.kimb_technologies.usf.test; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import eu.kimb_technologies.usf.Atom; | ||
import eu.kimb_technologies.usf.Bool; | ||
import eu.kimb_technologies.usf.USFInteger; | ||
import eu.kimb_technologies.usf.USFString; | ||
import eu.kimb_technologies.usf.USFSyntaxException; | ||
|
||
@DisplayName("USF Atom") | ||
class AtomTest { | ||
|
||
private Atom a1, a2, a3, a4; | ||
|
||
@BeforeEach | ||
public void setUp() throws Exception { | ||
a1 = new USFInteger(12); | ||
a2 = new USFInteger(12); | ||
a3 = new USFInteger(223); | ||
a4 = new USFString("aa"); | ||
} | ||
|
||
@Test | ||
@DisplayName("Equals Test") | ||
public void testEquals() { | ||
assertTrue( a1.equals( a2 ) ); | ||
assertFalse( a1.equals( a3 ) ); | ||
assertFalse( a1.equals( a4 ) ); | ||
assertFalse( a4.equals( new String("aa") ) ); | ||
} | ||
} |
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
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
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
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