aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2019-08-16 10:36:01 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2019-08-16 19:54:57 +0000
commitc485506b0aae298652448e80fca35036bfa755ac (patch)
tree17d5f7671c69ae5b5139c062dc00b883345048e4 /src/encoding
parentbb5441de4893c0802e3445250fbcc13c7b8e105c (diff)
downloadgo-c485506b0aae298652448e80fca35036bfa755ac.tar.xz
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 #17858 Updates #33677 Change-Id: I596d8302ca6bf721cf7ca11cc6f939639fcbdd43 Reviewed-on: https://go-review.googlesource.com/c/go/+/190524 Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions