moonmath/moon/moon_test.go
Sam Fredrickson f67323c5f4
All checks were successful
Build & Test / Main (push) Successful in 1m0s
Support hardcoded starting prices.
The Coindesk API doesn't have data going all the way back. But since history
isn't changing, we can simply put in known prices.

Also, extend the CDPR cells to have four digits instead of just two.
2024-03-29 19:24:10 -07:00

25 lines
386 B
Go

package moon_test
import (
"testing"
"time"
"code.humancabbage.net/sam/moonmath/moon"
)
func TestCDPR(t *testing.T) {
}
func TestProjection(t *testing.T) {
p := moon.ProjectDates(time.Now(), 68900, 1.0055, []moon.Goal{
{"$100k", 100000},
{"$150k", 150000},
{"$200k", 200000},
{"$250k", 250000},
{"$300k", 300000},
{"$500k", 500000},
{"$1m", 1000000},
})
_ = p
}