Timeline for Boolean Value Resets to True in Test Method
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 26, 2018 at 13:55 | history | edited | David Reed | CC BY-SA 4.0 |
added 767 characters in body
|
May 25, 2018 at 23:40 | comment | added | sfdcfox♦ |
My rule of thumb is to never compare a boolean to true or false: if(standardSearch) and if(!standardSearch) are the only form I use. I know people always say "but what about the nulls?!" to which I respond "My boolean values are never null. I initialize."
|
|
May 25, 2018 at 22:32 | vote | accept | S.B. | ||
May 25, 2018 at 22:24 | comment | added | S.B. | That moment you realize everything you've ever created with a boolean conditional is wrong. | |
May 25, 2018 at 22:17 | history | answered | David Reed | CC BY-SA 4.0 |