package mypkg import "testing" func TestAddition(t *testing.T) { got := Add(1, 1) want := 2 if got != want { t.Errorf("Add(1, 1) = %d; want %d", got, want) } } #тестовый файл