From ae82798b9c9501bd33c6fbe4946bd43c03b3a7b3 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Sat, 10 Nov 2018 16:39:44 +0100 Subject: [PATCH] Fix the WriteSring test by handling the error --- testutils/source.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testutils/source.go b/testutils/source.go index 1b398e2..132ff90 100644 --- a/testutils/source.go +++ b/testutils/source.go @@ -169,7 +169,10 @@ package main import "strings" func main() { var buf strings.Builder - buf.WriteString("test string") + _, err := buf.WriteString("test string") + if err != nil { + panic(err) + } }`}, 0}} // SampleCodeG105 - bignum overflow