Created
September 29, 2021 12:14
-
-
Save fasfsfgs/766e5515ffdbc4cc896b011d78da3a42 to your computer and use it in GitHub Desktop.
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
class MyClassTest { | |
private MyClass myClass = new MyClass(); | |
@Test | |
void testRightOrder() { | |
assertEquals(5, myClass.add(2, 3)); // Error: expected: <5> but was: <6> | |
} | |
@Test | |
void testWrongOrder() { | |
assertEquals(myClass.add(2, 3), 5); // Error: expected: <6> but was: <5> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment