Skip to content

Instantly share code, notes, and snippets.

@fasfsfgs
Created September 29, 2021 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasfsfgs/766e5515ffdbc4cc896b011d78da3a42 to your computer and use it in GitHub Desktop.
Save fasfsfgs/766e5515ffdbc4cc896b011d78da3a42 to your computer and use it in GitHub Desktop.
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