Class: ODDB::State::Drugs::TestRegisterDownload

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_state/drugs/register_download.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) test_price



13
14
15
16
17
18
19
20
21
# File 'test/test_state/drugs/register_download.rb', line 13

def test_price
  assert_equal(0, RegisterDownload.price(0))
  assert_equal(3.50, RegisterDownload.price(1))
  assert_equal(3.50, RegisterDownload.price(100))
  assert_equal(4.50, RegisterDownload.price(101))
  assert_equal(4.50, RegisterDownload.price(200))
  assert_equal(5.50, RegisterDownload.price(201))
  assert_equal(5.50, RegisterDownload.price(300))
end