mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 00:07:00 +00:00
feat: add testcase of assemble_transformation (#11810)
This commit is contained in:
parent
da587d06ac
commit
493a7c153c
|
@ -91,6 +91,14 @@ def assemble_transformation(ops: list[list[str]], i: int, j: int) -> list[str]:
|
|||
>>> y1 = len(ops1[0]) - 1
|
||||
>>> assemble_transformation(ops1, x1, y1)
|
||||
[]
|
||||
|
||||
>>> ops2 = [['0', 'I1', 'I2', 'I3'],
|
||||
... ['D1', 'C1', 'I2', 'I3'],
|
||||
... ['D2', 'D2', 'R23', 'R23']]
|
||||
>>> x2 = len(ops2) - 1
|
||||
>>> y2 = len(ops2[0]) - 1
|
||||
>>> assemble_transformation(ops2, x2, y2)
|
||||
['C1', 'I2', 'R23']
|
||||
"""
|
||||
if i == 0 and j == 0:
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue
Block a user