Skip to content

Commit

Permalink
update chronos
Browse files Browse the repository at this point in the history
  • Loading branch information
godcong committed Nov 8, 2019
1 parent 6677d14 commit e07acd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lunar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,16 @@ func TestNewLunar(t *testing.T) {
// TestCalculateLunar ...
func TestCalculateLunar(t *testing.T) {
//log.Print("now: ", chronos.Solar2Lunar(time.Parse()))
//检查日柱是否正确
log.Print(chronos.New("2019/10/31 23:13").Lunar().EightCharacter())
log.Print(chronos.New("2019/11/01 0:13").Lunar().EightCharacter())
log.Print(chronos.New("2019/11/01 1:13").Lunar().EightCharacter())

//检查立春是否有效
log.Print(chronos.New("2020/02/03 23:13").Lunar().EightCharacter())
log.Print(chronos.New("2020/02/04 1:13").Lunar().EightCharacter())
log.Print(chronos.New("2020/02/04 18:13").Lunar().EightCharacter())

log.Print(chronos.New("2020/01/24 0:40").LunarDate())

log.Print(chronos.New("2020/01/25 0:40").LunarDate())
Expand Down

0 comments on commit e07acd0

Please sign in to comment.