thenewboston-blockchain / Bank

Bank for thenewboston digital currency.
https://thenewboston.com
MIT License
87 stars 42 forks source link

Write a test to validate trust value while creating a new Bank #112

Closed pgeorge2 closed 3 years ago

pgeorge2 commented 3 years ago

Write a test called test_invalid_bank_trust_value and cover following scenarios:

  1. pass trust value with 3 decimal places like 20.235 and 99.458 and verify the error response
  2. pass trust value greater than 100 and verify the error response.

Hint: Value of trust must be reside between 0 to 100 and it can contains values with at max 2 decimal places