package add

import "testing"

// 测试用例 1：正数
func TestAddPositive(t *testing.T) {
	got := Add(2, 3)
	want := 5
	if got != want {
		t.Errorf("Add(2, 3) = %d; want %d", got, want)
	}
}

// 测试用例 2：负数
func TestAddNegative(t *testing.T) {
	got := Add(-1, -1)
	want := -2
	if got != want {
		t.Errorf("Add(-1, -1) = %d; want %d", got, want)
	}
}

// 测试用例 3：零值
func TestAddZero(t *testing.T) {
	got := Add(0, 7)
	want := 7
	if got != want {
		t.Errorf("Add(0, 7) = %d; want %d", got, want)
	}
}
