MCPcopy Create free account
hub / github.com/bitfield/ftl-code / TestAdd

Function TestAdd

3.2/calculator_test.go:8–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestAdd(t *testing.T) {
9 t.Parallel()
10 var want float64 = 4
11 got := calculator.Add(2, 2)
12 if want != got {
13 t.Errorf("want %f, got %f", want, got)
14 }
15}
16
17func TestSubtract(t *testing.T) {
18 t.Parallel()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected