about summary refs log tree commit diff
path: root/main/subtractions/subtractions_test.go
blob: eaf49e18708fc92ce75ec27edb6d48eb028a0301 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
	}
}