| 1234567891011121314151617181920212223 |
- // Author: simon
- // Author: ynwdlxm@163.com
- // Date: 2025/2/12 09:58
- // Desc:
- package add
- import (
- "testing"
- )
- func TestAdd(t *testing.T) {
- a := 2
- b := 3
- exp := 5
- res := add(a, b)
- if exp != res {
- t.Errorf("Expected %d, got %d.", exp, res)
- }
- }
|