initial commit

This commit is contained in:
2023-02-14 19:31:29 +01:00
commit c1b04de8ea
9 changed files with 80 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
package foo
func Sum(a, b int) int {
return a + b
}
+12
View File
@@ -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))
}