- fix: Rename GetSunDownTime to GetSunSetTime in basic/sun.go and update related calls/outputs - fix: Update test cases to use new method and error constant names - improve: Rename all DownTime/Down functions to SetTime/Set for consistency - improve: Standardize ERR_XXX_NEVER_DOWN error constants to ERR_XXX_NEVER_SET, with ERR_XXX_NEVER_DOWN kept as compatibility alias - improve: More standard naming for interfaces and errors to improve maintainability and readability
		
			
				
	
	
		
			15 lines
		
	
	
		
			263 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			263 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package venus
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"testing"
 | 
						|
	"time"
 | 
						|
)
 | 
						|
 | 
						|
func TestVenus(t *testing.T) {
 | 
						|
	date := time.Now().Add(time.Hour * -24)
 | 
						|
	fmt.Println(CulminationTime(date, 115))
 | 
						|
	fmt.Println(RiseTime(date, 115, 23, 0, false))
 | 
						|
	fmt.Println(SetTime(date, 115, 23, 0, false))
 | 
						|
}
 |