pub fn can_withdraw_reduced_to_zero<T, AccountId>(_dust_trap: Option<AccountId>)where
    T: Mutate<AccountId>,
    <T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug,
    AccountId: AtLeast8BitUnsigned,
Expand description

Test the can_withdraw function for withdrawal resulting in a reduced balance of zero.

This test verifies that the can_withdraw function returns WithdrawConsequence::ReducedToZero when withdrawing an amount that would reduce the account balance below the minimum balance.

Type Parameters

- T: Implements Mutate<AccountId>.
- AccountId: Account identifier implementing AtLeast8BitUnsigned.