diff options
| author | totycro <totycro@unknown-horizons.org> | 2011-05-22 22:13:33 +0200 |
|---|---|---|
| committer | totycro <totycro@unknown-horizons.org> | 2011-05-22 22:13:33 +0200 |
| commit | be3258068761a7c9eba329d205195f4cb3dd1eef (patch) | |
| tree | 9bd8a7c99329718cade68ac17000df57538008c3 /bank-eiffel/tests | |
| parent | 4453374f4e9ae51ea4d9dec4c4407e420e61b72f (diff) | |
| download | foop-be3258068761a7c9eba329d205195f4cb3dd1eef.tar.gz foop-be3258068761a7c9eba329d205195f4cb3dd1eef.tar.bz2 foop-be3258068761a7c9eba329d205195f4cb3dd1eef.zip | |
Added preset ranges for values to accout
Diffstat (limited to 'bank-eiffel/tests')
| -rw-r--r-- | bank-eiffel/tests/test_account.e | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bank-eiffel/tests/test_account.e b/bank-eiffel/tests/test_account.e index a460023..3086402 100644 --- a/bank-eiffel/tests/test_account.e +++ b/bank-eiffel/tests/test_account.e | |||
| @@ -20,10 +20,24 @@ feature -- Test routines | |||
| 20 | person1: PERSON | 20 | person1: PERSON |
| 21 | person2: PERSON | 21 | person2: PERSON |
| 22 | account: ACCOUNT | 22 | account: ACCOUNT |
| 23 | cre: ARRAY[REAL_64] | ||
| 24 | deb_rng: ARRAY[REAL_64] | ||
| 25 | dep_rng: ARRAY[REAL_64] | ||
| 23 | do | 26 | do |
| 24 | create person1.make ("SOME_SURNAME_1", "SOME_FIRSTNAME_1") | 27 | create person1.make ("SOME_SURNAME_1", "SOME_FIRSTNAME_1") |
| 25 | create person2.make ("SOME_SURNAME_2", "SOME_FIRSTNAME_2") | 28 | create person2.make ("SOME_SURNAME_2", "SOME_FIRSTNAME_2") |
| 26 | create account.make (person1) | 29 | |
| 30 | create cre.make_filled (0.0, 0, 1) | ||
| 31 | cre.put (-100.0, 0) | ||
| 32 | cre.put (-50.0, 1) | ||
| 33 | create deb_rng.make(0,1) | ||
| 34 | deb_rng.put (0.1, 0) | ||
| 35 | deb_rng.put (2.2, 1) | ||
| 36 | create dep_rng.make(0,1) | ||
| 37 | dep_rng.put (0.1, 0) | ||
| 38 | dep_rng.put (2.2, 1) | ||
| 39 | |||
| 40 | create account.make (person1, 1.0, 2.0, -50.0, deb_rng, dep_rng, cre) | ||
| 27 | account.add_authorized_signer (person2) | 41 | account.add_authorized_signer (person2) |
| 28 | --assert ("not_implemented", False) | 42 | --assert ("not_implemented", False) |
| 29 | end | 43 | end |
