We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let acct: Account = Account::new(1, "John Doe".to_string(), 0, HashMap::new()); let res: Result<(), AccountError> = acct.add_balance(1); assert_eq!(res, Ok(()));
Assert fails, as Account::add_balance returns AccountError::BalanceOutOfBounds.
Account::add_balance
AccountError::BalanceOutOfBounds
Assert succeeds, as Account::add_balance returns Ok(()).
Ok(())
add_balance
add_holding
The text was updated successfully, but these errors were encountered:
Closed by 02afee2.
Sorry, something went wrong.
jmcph4
No branches or pull requests
Reproduction
Actual Behaviour
Assert fails, as
Account::add_balance
returnsAccountError::BalanceOutOfBounds
.Expected Behaviour
Assert succeeds, as
Account::add_balance
returnsOk(())
.Tasks
add_balance
add_holding
The text was updated successfully, but these errors were encountered: