Skip to content

Commit bb9adbd

Browse files
test(vm): negative width for center and zfill
1 parent 737b687 commit bb9adbd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

compiler/tests/cases/vm.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@
818818
{"src": "print('-5'.zfill(4))", "output": ["-005"]},
819819
{"src": "print('abc'.zfill(5))", "output": ["00abc"]},
820820
{"src": "print('abc'.zfill(2))", "output": ["abc"]},
821+
{"src": "print('abc'.center(-1))", "output": ["abc"]},
822+
{"src": "print('abc'.zfill(-1))", "output": ["abc"]},
821823
{"src": "print('hello'[:])", "output": ["hello"]},
822824
{"src": "print('hello'[1:])", "output": ["ello"]},
823825
{"src": "print('hello'[:3])", "output": ["hel"]},

0 commit comments

Comments
 (0)