-
-
Save SDiamante13/5c2932ec4dd90abb1308fc8d953e3e60 to your computer and use it in GitHub Desktop.
Failing common case
This file contains hidden or 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
package tech.pathtoprogramming.tdd; | |
import org.junit.jupiter.api.Test; | |
import static org.assertj.core.api.Assertions.assertThat; | |
class AYearShould { | |
@Test | |
void determineThatTheYearIsNotALeapYearForCommonCase() { | |
boolean isLeapYear = Year.isLeapYear(2001); | |
assertThat(isLeapYear).isEqualTo(false); | |
} | |
} | |
class Year { | |
public static boolean isLeapYear(int year) { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment