Displaying 2 results from an estimated 2 matches for "expected_float".
2005 Dec 31
2
Test Unit Problem
Hello All,
I am experiencing the following test unit error working with Rails that
I can''t fathom.
I have a products.yml file which holds the following test fixture for
the products table:
dell_pc:
id: 1
title: Dell PC
description: Dell PC
image_url: http://.../pc_image.jpg
price: 15000.00
date_available: 2005-12-31 06:53:00
I also have the following product_test.rb file to
2006 Mar 22
2
Test Failure: <0.01> expected but was <0.01>
I have two database fields, and then I have a method which shows the
difference. It''s simply
def ev_diff
ev_push - ev_fold
end
The value of ev_push is 0.26, value of ev_fold is 0.05, so the diff is
obviously 0.01. I have an assertion written as:
assert_equal 0.01, stats.ev_diff
Which fails..but I have no clue why. The failure message follow:
1) Failure: