Skip to content

Commit

Permalink
new unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rderoldan1 committed Mar 8, 2013
1 parent 0105bc3 commit 6abcd52
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ more functions will be added soon

#### Pending
1. include more functions
3. add some test units
3. add some unit tests

## Installation

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'bundler/setup'
require 'financial_maths'


include FinancialMaths
RSpec.configure do |config|

end
11 changes: 11 additions & 0 deletions spec/test_payment_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rspec'
require 'spec_helper'

describe "fixed payment test" do

it 'should be the monthly payment' do

annuity_given_present(100000000, 0.0144594763, 180).should eq(1563975.1395)

end
end

0 comments on commit 6abcd52

Please sign in to comment.