initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package foo
|
||||
|
||||
func Sum(a, b int) int {
|
||||
return a + b
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package foo_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.phc.dm.unipi.it/phc/drone-example/foo"
|
||||
"github.com/alecthomas/assert/v2"
|
||||
)
|
||||
|
||||
func TestFoo(t *testing.T) {
|
||||
assert.Equal(t, 111, foo.Sum(42, 69))
|
||||
}
|
||||
Reference in New Issue
Block a user