Skip to content

Commit

Permalink
style: remove double whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Nowak-Liebiediew committed Dec 18, 2023
1 parent ee08969 commit 6fe86a6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions e2e/tests-dfx/cycles-ledger.bash
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,23 @@ current_time_nanoseconds() {
assert_command dfx cycles balance --precise --identity alice
assert_eq "1700400200150 cycles."

assert_command dfx cycles balance --precise --identity alice --subaccount "$ALICE_SUBACCT1"
assert_command dfx cycles balance --precise --identity alice --subaccount "$ALICE_SUBACCT1"
assert_eq "3750000000000 cycles."

assert_command dfx cycles balance --precise --identity alice --subaccount "$ALICE_SUBACCT2"
assert_command dfx cycles balance --precise --identity alice --subaccount "$ALICE_SUBACCT2"
assert_eq "760500000000 cycles."

assert_command dfx cycles balance --precise --identity bob
assert_command dfx cycles balance --precise --identity bob
assert_eq "2900000000000 cycles."


assert_command dfx cycles balance --identity alice
assert_eq "1.700 TC (trillion cycles)."

assert_command dfx cycles balance --identity alice --subaccount "$ALICE_SUBACCT1"
assert_command dfx cycles balance --identity alice --subaccount "$ALICE_SUBACCT1"
assert_eq "3.750 TC (trillion cycles)."

assert_command dfx cycles balance --identity alice --subaccount "$ALICE_SUBACCT2"
assert_command dfx cycles balance --identity alice --subaccount "$ALICE_SUBACCT2"
assert_eq "0.760 TC (trillion cycles)."

assert_command dfx cycles balance --identity bob
Expand All @@ -103,7 +103,7 @@ current_time_nanoseconds() {
assert_command dfx cycles balance --owner "$ALICE" --subaccount "$ALICE_SUBACCT1" --identity bob
assert_eq "3.750 TC (trillion cycles)."

assert_command dfx cycles balance --owner "$BOB" --identity anonymous
assert_command dfx cycles balance --owner "$BOB" --identity anonymous
assert_eq "2.900 TC (trillion cycles)."
}

Expand Down Expand Up @@ -195,7 +195,7 @@ current_time_nanoseconds() {

assert_command dfx canister call cycles-depositor deposit "(record {to = record{owner = principal \"$ALICE\";};cycles = 3_000_000_000_000;})" --identity cycle-giver

assert_command dfx cycles balance --precise --identity alice
assert_command dfx cycles balance --precise --identity alice
assert_eq "3000000000000 cycles."

assert_command dfx cycles balance --precise --identity bob
Expand Down Expand Up @@ -294,9 +294,9 @@ current_time_nanoseconds() {
assert_command dfx canister status e2e_project_backend
assert_contains "Balance: 3_100_000_100_000 Cycles"

assert_command dfx cycles top-up e2e_project_backend 300000 --identity bob --from-subaccount "$BOB_SUBACCT1"
assert_command dfx cycles top-up e2e_project_backend 300000 --identity bob --from-subaccount "$BOB_SUBACCT1"

assert_command dfx cycles balance --precise --identity bob --subaccount "$BOB_SUBACCT1"
assert_command dfx cycles balance --precise --identity bob --subaccount "$BOB_SUBACCT1"
assert_eq "2599899700000 cycles."
assert_command dfx canister status e2e_project_backend
assert_contains "Balance: 3_100_000_400_000 Cycles"
Expand All @@ -307,9 +307,9 @@ current_time_nanoseconds() {
assert_command dfx canister status e2e_project_backend
assert_contains "Balance: 3_100_000_400_000 Cycles"

assert_command dfx cycles top-up "$(dfx canister id e2e_project_backend)" 600000 --identity bob --from-subaccount "$BOB_SUBACCT2"
assert_command dfx cycles top-up "$(dfx canister id e2e_project_backend)" 600000 --identity bob --from-subaccount "$BOB_SUBACCT2"

assert_command dfx cycles balance --precise --identity bob --subaccount "$BOB_SUBACCT2"
assert_command dfx cycles balance --precise --identity bob --subaccount "$BOB_SUBACCT2"
assert_eq "2699899400000 cycles."
assert_command dfx canister status e2e_project_backend
assert_contains "Balance: 3_100_001_000_000 Cycles"
Expand Down

0 comments on commit 6fe86a6

Please sign in to comment.