Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
when 1.6 != 1.6? -- newbie
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Aleksi, post: 4466649"] Ilmari is right here. The way to check if the calculated value is close enough to the expected value, please check: [URL]http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit/Assertions.html#M000104[/URL] Usage being something like required_accuracy = 0.0001 assert_equal(1.6, @e.cost(), required_accuracy, "price check2") # --> does not fail anymore - Aleksi [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
when 1.6 != 1.6? -- newbie
Top