Go t.Errorf()

1 개요[ | ]

Go t.Errorf()
Go
Copy
package abs

import "testing"

func TestAbs(t *testing.T) {
    got := Abs(-1)
    if got != 1 {
        t.Errorf("Abs(-1) = %d; want 1", got)
    }
}

2 같이 보기[ | ]

3 참고[ | ]