Comments (3)
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.
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.
This seems like it should be closed, can we get some closure? 😈
from ruby.
Related Issues (20)
- Kindergarten Garden may be harder than defined HOT 4
- [SavingAccounts]: Suggestion: change negative interest rate tests to return positive value HOT 5
- Hacktoberfest 2022 HOT 2
- Binary Search Ruby HOT 3
- TwoBucket - possible error in test suite HOT 4
- Question about function name in "Moviegoer" exercism HOT 2
- Typo in final bird_count test where "whith" should be "with" HOT 2
- Typo in locomotive_engineer instrucions HOT 2
- Locomotive Engineer exercise relies on implicit Ruby behavior HOT 1
- the pythagorean triplet exercise has something wrong with it HOT 1
- Add analyzer for leap HOT 2
- Armstrong exercise tests confusion HOT 7
- 🤖 Sync error for commit 3312f6 HOT 1
- The Symbols document contains a factual error. HOT 2
- Building a training set of tags for ruby HOT 22
- Should the Attendee query methods end in a question mark? HOT 2
- Issue with savings_account interest_rate test HOT 2
- Parallel Letter Frequency times out in the web interface HOT 3
- Correction: Conditional concept document introduction.md HOT 2
- Insufficient test cases in `house` HOT 1
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.
from ruby.