@@ -281,20 +281,20 @@ func TestUnexpectedArgValue_FirstArg(t *testing.T) {
281281 defer reporter .recoverUnexpectedFatal ()
282282 subject := new (Subject )
283283
284- expectedArg0 := TestStruct {Number : 123 , Message : "hello" }
284+ expectedArg0 := TestStruct {Number : 123 , Message : "hello %s " }
285285 ctrl .RecordCall (subject , "ActOnTestStructMethod" , expectedArg0 , 15 )
286286
287287 reporter .assertFatal (func () {
288288 // the method argument (of TestStruct type) has 1 unexpected value (for the Message field)
289289 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 123 , Message : "no message" }, 15 )
290290 }, "Unexpected call to" , "doesn't match the argument at index 0" ,
291- "Got: {123 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello} (gomock_test.TestStruct)" )
291+ "Got: {123 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello %s } (gomock_test.TestStruct)" )
292292
293293 reporter .assertFatal (func () {
294294 // the method argument (of TestStruct type) has 2 unexpected values (for both fields)
295295 ctrl .Call (subject , "ActOnTestStructMethod" , TestStruct {Number : 11 , Message : "no message" }, 15 )
296296 }, "Unexpected call to" , "doesn't match the argument at index 0" ,
297- "Got: {11 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello} (gomock_test.TestStruct)" )
297+ "Got: {11 no message} (gomock_test.TestStruct)\n Want: is equal to {123 hello %s } (gomock_test.TestStruct)" )
298298
299299 reporter .assertFatal (func () {
300300 // The expected call wasn't made.
0 commit comments