blob: eaf49e18708fc92ce75ec27edb6d48eb028a0301 (
plain) (
tree)
|
|
package subtractions
import "testing"
func Test_SubtractNumbers(t *testing.T) {
ans := subtractNumbers(10, 7)
if ans != 3 {
t.Fatal("Expected 3 but got ", ans)
}
}
func Test_SubtractNumbers2(t *testing.T) {
ans := subtractNumbers(10, 6)
if ans != 4 {
t.Fatal("Expected 4 but got ", ans)
}
}
|