]> Cypherpunks repositories - gostls13.git/commit
fmt: improve test coverage of %x and %X format variations for strings
authorMartin Möhrmann <martisch@uos.de>
Fri, 9 Jan 2015 11:32:19 +0000 (12:32 +0100)
committerRob Pike <r@golang.org>
Wed, 1 Apr 2015 00:55:30 +0000 (00:55 +0000)
commit15e66f9d01da995d63683245a429e64d71ac698e
tree2d75ba79bb5261dda1ecf1e2495eec52777ca750
parent29d1f3b85c8316f483164b16e459e10aacbe757e
fmt: improve test coverage of %x and %X format variations for strings

The tests in the basic string section are now covering more code paths
for encoding a string into the hexadecimal representation of its bytes.

Changed the basic string and basic bytes tests so that they mirror each other.

Change-Id: Ib5dc7b33876769965f9aba2ac270040abc4b2451
Reviewed-on: https://go-review.googlesource.com/2611
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/fmt_test.go