mirror of
https://github.com/louisleroy5/trnslator.git
synced 2024-11-15 00:30:31 -05:00
dfdf384a40
increase coverage
19 lines
243 B
Python
19 lines
243 B
Python
import pytest
|
|
|
|
from translater import utils
|
|
|
|
|
|
def test_rotate(config):
|
|
# Shift list elements to the left
|
|
l1 = [1, 2, 3] # list
|
|
n = 1 # shift 1 position to the left
|
|
l2 = utils.rotate(l1, n)
|
|
|
|
assert (l2 == [2, 3, 1])
|
|
|
|
|
|
|
|
|
|
|
|
|