Skip to content

Conversation

@jjb
Copy link
Contributor

@jjb jjb commented Jul 9, 2023

without these tests, if return yield(sec) if sec == nil or sec.zero? is commented out, no tests fail

with these tests, if that line is commented out:

  • test_allows_nil_seconds does fail
  • test_allows_zero_seconds does not fail

i couldn't think of a way to test "blank seconds bypasses all other logic" (and don't have an opinion if that's important)

@hsbt hsbt merged commit 008a632 into ruby:master Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants