Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
time: update TestSub to avoid future regressions
CL 131196 optimized Time.Sub, but was reverted because it incorrectly computed the nanoseconds in some edge cases. This CL adds a test case to enforce the correct behavior so that a future optimization does not break this again. Updates golang#17858 Updates golang#33677 Change-Id: I596d8302ca6bf721cf7ca11cc6f939639fcbdd43 Reviewed-on: https://go-review.googlesource.com/c/go/+/190524 Run-TryBot: Joe Tsai <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Andrew Bonventre <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
- Loading branch information