Skip to content

Commit edef215

Browse files
committed
fix ir
1 parent c8b34dd commit edef215

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
@@ -202,11 +202,11 @@ def f(b: bytes) -> bytes:
202202
return b.rjust(8, b'0')
203203
[out]
204204
def f(b):
205-
b :: bytes
206-
r0 :: bytes
205+
b, r0 :: bytes
207206
L0:
208-
r0 = b.rjust(8, b'0')
209-
return r0
207+
r0 = b'_'
208+
r1 = CPyBytes_Rjust(b, 20, r0)
209+
return r1
210210

211211
[case testBytesLjustDefault]
212212
def f(b: bytes) -> bytes:
@@ -224,11 +224,11 @@ def f(b: bytes) -> bytes:
224224
return b.ljust(10, b'_')
225225
[out]
226226
def f(b):
227-
b :: bytes
228-
r0 :: bytes
227+
b, r0 :: bytes
229228
L0:
230-
r0 = b.ljust(10, b'_')
231-
return r0
229+
r0 = b'_'
230+
r1 = CPyBytes_Ljust(b, 20, r0)
231+
return r1
232232

233233
[case testBytesRjustNoPad]
234234
def f(b: bytes) -> bytes:

0 commit comments

Comments
 (0)