go-house's People
go-house's Issues
Test failures
Just for your info, I saw a number of test failures on my machine. Perhaps related to time zones?
FAIL: daily_test.go:96: MySuite.TestFindFireTimeForDateSunrise
daily_test.go:105:
c.Check(fireTime, check.Equals, sunriseToday)
... obtained time.Time = time.Time{sec:63538174021, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 06:47:01 -0600 MDT")
... expected time.Time = time.Time{sec:63538170421, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 05:47:01 -0600 MDT")
daily_test.go:110:
c.Check(fireTime, check.Equals, sunriseTomorrow)
... obtained time.Time = time.Time{sec:63538174020, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 06:47:00 -0600 MDT")
... expected time.Time = time.Time{sec:63538256819, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 05:46:59 -0600 MDT")
daily_test.go:115:
c.Check(fireTime, check.Equals, sunriseTomorrow)
... obtained time.Time = time.Time{sec:63538260419, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 06:46:59 -0600 MDT")
... expected time.Time = time.Time{sec:63538256819, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 05:46:59 -0600 MDT")
daily_test.go:120:
c.Check(fireTime, check.Equals, sunriseTomorrow)
... obtained time.Time = time.Time{sec:63538260419, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 06:46:59 -0600 MDT")
... expected time.Time = time.Time{sec:63538256819, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 05:46:59 -0600 MDT")
----------------------------------------------------------------------
FAIL: daily_test.go:125: MySuite.TestFindFireTimeForDateSunset
daily_test.go:134:
c.Check(fireTime, check.Equals, sunsetToday)
... obtained time.Time = time.Time{sec:63538226974, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 21:29:34 -0600 MDT")
... expected time.Time = time.Time{sec:63538223373, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 20:29:33 -0600 MDT")
daily_test.go:139:
c.Check(fireTime.Round(time.Minute), check.Equals, sunsetTomorrow)
... obtained time.Time = time.Time{sec:63538227000, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-12 21:30:00 -0600 MDT")
... expected time.Time = time.Time{sec:63538309800, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 20:30:00 -0600 MDT")
daily_test.go:144:
c.Check(fireTime.Round(time.Minute), check.Equals, sunsetTomorrow)
... obtained time.Time = time.Time{sec:63538313400, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 21:30:00 -0600 MDT")
... expected time.Time = time.Time{sec:63538309800, nsec:0x0, loc:(*time.Location)(0x354ee0)} ("2014-06-13 20:30:00 -0600 MDT")
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.