-
Notifications
You must be signed in to change notification settings - Fork 1
/
utils_test.go
42 lines (33 loc) · 848 Bytes
/
utils_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package ethiopian_calendar
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestGetEvangelist(t *testing.T) {
assert.Equal(t, EVANGELIST_MATTHEW, GetEvangelist(2001))
assert.Equal(t, EVANGELIST_JOHN, GetEvangelist(2000))
assert.Equal(t, EVANGELIST_LUKE, GetEvangelist(1999))
assert.Equal(t, EVANGELIST_MARK, GetEvangelist(1998))
}
func TestGetRabit(t *testing.T) {
r := GetRabit(2001)
assert.Equal(t, 1875, r)
}
func TestGetWenber(t *testing.T) {
r := GetWenber(2001)
assert.Equal(t, 14, r)
}
func TestGetMeTq(t *testing.T) {
r := GetMeTq(2001)
assert.Equal(t, 26, r)
}
func TestGetMebacha(t *testing.T) {
r := GetMebacha(2010)
assert.Equal(t, DAY_MON, r)
r = GetMebacha(2011)
assert.Equal(t, DAY_TUE, r)
r = GetMebacha(2012)
assert.Equal(t, DAY_THU, r)
r = GetMebacha(2013)
assert.Equal(t, DAY_FRI, r)
}