0
respostas

o assert.Equal não funciona com o paametro t

Curso GO: validações..., 03, aula 02

Ao utilizar o asser.Equal, aparece a seguinte mensagem de erro:

cannot use t (variable of type *testing.T) as assert.TestingT value in argument to assert.Equal: wrong type for method Errorf (have func(format string, args ...invalid type), want func(format string, args ...interface{}))compilerInvalidIfaceAssign

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software