github.com/archlabjp/eeslism-go@v0.0.0-20231109122333-4bb7bfcdf292/eeslism/u_day_test.go (about) 1 package eeslism 2 3 import ( 4 "testing" 5 6 "gotest.tools/assert" 7 ) 8 9 func Test_FNNday(t *testing.T) { 10 assert.Equal(t, 1, FNNday(1, 1)) // 1月1日: 1日目 11 assert.Equal(t, 32, FNNday(2, 1)) // 2月1日: 32日目 12 assert.Equal(t, 365, FNNday(12, 31)) // 12月31日: 365日目 13 }