Giter VIP home page Giter VIP logo

go-house's People

Contributors

dongar avatar nathany avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.