4 ms·
I'm curious... how would you imagine this might break things downstream? FWIW I love this kind of stuff and if properly documented would rather work around it
by mercer 9y ago
I'm curious... how would you imagine this might break things downstream?
FWIW I love this kind of stuff and if properly documented would rather work around it than remove it, but nobody relies on my code so what do I know :).
- mmjaa 9y agoExpect: a tool (from tcl/tk) used to write tests, whether we like it or not. Expect that "gimme gimme gimme" is a cheap way to determine if the tests are running after midnight, nor not. If so, do more extensive tests; if not, do less burdensome tests. I know - its lame. But, you cannot predict these things. If you don't want people to use your Easter egg for something, don't include it in the release.. ;)
- zulln 9y agohttps://xkcd.com/1172/ https://xkcd.com/1172/
- emodendroket 9y agoAs described it only worked if you run it at exactly half-past midnight.
- ng12 9y agoBecause dozens of junior engineers have encountered this error before. However, instead of posting on SE about it they added a branch to the test case if it was running after midnight, and at least one of them added an assert to verify the output was "gimme gimme gimme".