Skip to content

Commit 960262c

Browse files
committed
fix ir
1 parent 740cf8d commit 960262c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mypyc/test-data/irbuild-bytes.test

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ def f(b: bytes) -> bytes:
234234
return b.rjust(8, b'0')
235235
[out]
236236
def f(b):
237-
b :: bytes
238-
r0 :: bytes
237+
b, r0 :: bytes
239238
L0:
240-
r0 = b.rjust(8, b'0')
241-
return r0
239+
r0 = b'_'
240+
r1 = CPyBytes_Rjust(b, 20, r0)
241+
return r1
242242

243243
[case testBytesLjustDefault]
244244
def f(b: bytes) -> bytes:
@@ -256,11 +256,11 @@ def f(b: bytes) -> bytes:
256256
return b.ljust(10, b'_')
257257
[out]
258258
def f(b):
259-
b :: bytes
260-
r0 :: bytes
259+
b, r0 :: bytes
261260
L0:
262-
r0 = b.ljust(10, b'_')
263-
return r0
261+
r0 = b'_'
262+
r1 = CPyBytes_Ljust(b, 20, r0)
263+
return r1
264264

265265
[case testBytesRjustNoPad]
266266
def f(b: bytes) -> bytes:

0 commit comments

Comments
 (0)