From e9f15a794b62fa8d18e926dfd2fe52fcef180c56 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 24 Mar 2021 16:36:34 +0100 Subject: fix change recording for transfer cmd --- test.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test.py') diff --git a/test.py b/test.py index d7db0c8..e786a93 100755 --- a/test.py +++ b/test.py @@ -836,6 +836,20 @@ alice <- 10.00 bob self.assertEqual(res.stdout, msg) compare_state("test/state.json_3users") + def test_fuck_transfer(self): + run_bot(self, num[alice], f"!transfer 5 {bob} {charlie}") + res = run_bot(self, num[alice], "!fuck") + msg = \ +"""alice: sorry I fucked up! +Rewinding: +!transfer 5 bob charlie +alice -> 5.00 bob +alice <- 5.00 charlie +charlie <- 5.00 bob +""" + self.assertEqual(res.stdout, msg) + compare_state("test/state.json_3users") + def test_rewind_first(self): run_bot(self, num[alice], f"!split 3 {bob} {charlie}") run_bot(self, num[alice], f"!schieb {bob} 10") -- cgit v1.2.3