Giter Site home page Giter Site logo

Problem in Gigasecond test suite about ruby HOT 3 CLOSED

exercism avatar exercism commented on July 24, 2024
Problem in Gigasecond test suite

from ruby.

Comments (3)

kytrinyx avatar kytrinyx commented on July 24, 2024

If you look at the diffs:

--- expected
+++ actual
@@ -1 +1 @@
-# Date: 1991-03-27 ((2448343j,0s,0n),+0s,2299161j)
+# Gigasecond:0xXXXXXX @start_date=#<Date: 1959-07-19 ((2436769j,0s,0n),+0s,2299161j)

The line that has a minus in front of it is what the test wants to get back, and the line with a plus in front of it is what it is actually getting back.

So it wants a Date object with a certain value, but it's getting a Gigasecond object.

This is what the current tests look like:

https://github.com/exercism/xruby/blob/master/gigasecond/gigasecond_test.rb#L8-L11

It doesn't look like you have the same version of the test suite, though, otherwise your errors would look different. Would you mind pasting a copy of your test suite?

(tip: if you use three backticks on the line above your code, and three backticks on the line below it, it will format your code the way an editor might)

from ruby.

chojo avatar chojo commented on July 24, 2024

Dear Katrina,

thanks for your helpful advise!

You are right, I didn’t had the current test suite.
So i checked out the current test suite and could get the test pass!

Thanks again!

Have a nice day!

Cheers,
Joon Ki

From: Katrina Owen [mailto:[email protected]]
Sent: Friday, August 29, 2014 3:22 PM
To: exercism/xruby
Cc: Choi Joon Ki EDA CHOJO
Subject: Re: [xruby] Problem in Gigasecond test suite (#26)

If you look at the diffs:

--- expected

+++ actual

@@ -1 +1 @@

-# Date: 1991-03-27 ((2448343j,0s,0n),+0s,2299161j)

+# Gigasecond:0xXXXXXX @start_date=#<Date: 1959-07-19 ((2436769j,0s,0n),+0s,2299161j)

The line that has a minus in front of it is what the test wants to get back, and the line with a plus in front of it is what it is actually getting back.

So it wants a Date object with a certain value, but it's getting a Gigasecond object.

This is what the current tests look like:

https://github.com/exercism/xruby/blob/master/gigasecond/gigasecond_test.rb#L8-L11

It doesn't look like you have the same version of the test suite, though, otherwise your errors would look different. Would you mind pasting a copy of your test suite?

(tip: if you use three backticks on the line above your code, and three backticks on the line below it, it will format your code the way an editor might)


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-53874526.

from ruby.

kotp avatar kotp commented on July 24, 2024

This seems like it should be closed, can we get some closure? 😈

from ruby.

Related Issues (20)

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.