Fix the WriteSring test by handling the error

This commit is contained in:
Cosmin Cojocar 2018-11-10 16:39:44 +01:00 committed by Cosmin Cojocar
parent adb42220da
commit ae82798b9c

View file

@ -169,7 +169,10 @@ package main
import "strings" import "strings"
func main() { func main() {
var buf strings.Builder var buf strings.Builder
buf.WriteString("test string") _, err := buf.WriteString("test string")
if err != nil {
panic(err)
}
}`}, 0}} }`}, 0}}
// SampleCodeG105 - bignum overflow // SampleCodeG105 - bignum overflow