Errors in: Leap
See original GitHub issueCommon problems also found in other tests.
- Problem description too vague: Given a year, report if it is a leap year.
- function/class?
- name?
- file name?
- return type?
- restrictions?
=> the user has to guess what to do, from the test suite.
- Test suite is incomplete, most tests are skipped because of
@Ignored
tags.
=> test unreliable
class LeapTest {
@Test
fun yearNotDivisibleBy4() {
assertFalse(Year(2015).isLeap)
}
@Ignore
@Test
fun yearDivisibleBy4NotDivisibleBy100() {
assertTrue(Year(1996).isLeap)
}
@Ignore
@Test
fun yearDivisibleBy100NotDivisibleBy400() {
assertFalse(Year(2100).isLeap)
}
@Ignore
@Test
fun yearDivisibleBy400() {
assertTrue(Year(2000).isLeap)
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Object Reference Errors - LEAP Community
"Object reference not set to an instance of an object" is an error that may appear when sending an email via LEAP.
Read more >Leap! (2016) mistakes
The biggest mistakes you never noticed in Leap! (2016). Add more and vote on your favourites!
Read more >Troubleshooting user errors - HCL Leap 9
Troubleshooting user errors · Incorrect layout in the form or incorrect sizing of fonts, particularly when printed. This problem can occur if you...
Read more >I have a question upon error message 'Erange error'. - LEAP
Range errors, access violations and various other low level error messages are a likely indication of a bug in LEAP or some other...
Read more >Characterizing and Compensating for Errors in a Leap Motion ...
Abstract: This paper concerns a rehabilitation framework that makes use of a low cost "off-the-shelf" device. The device is a visual markerless sensor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m closing this issue for now. If the two discussions above don’t solve this for you, please start a discussion here and we can try to find a solution together.
Thanks for the report. #2 should be addressed in #296. Each assignment description will let folks know to remove the @Ignore. Hopefully that helps once it is deployed to prod. If it doesn’t, please let me know.