from p206 import Solution

from common.linked_list import getLinkedList, getListFromLinkedList

test_cases = [
    ([1,2,3,4,5], [5,4,3,2,1]),
    ([1,2], [2,1]),
    ([], []),
]


def test_reverseList():
    s = Solution()
    for case in test_cases:
        assert getListFromLinkedList(s.reverseList(getLinkedList(case[0]))) == case[1], case

78e156bd664c2cc246b7cb640d754b42aaa9da56
<mask token>

<mask token>


def test_reverseList():
    s = Solution()
    for case in test_cases:
        assert getListFromLinkedList(s.reverseList(getLinkedList(case[0]))
            ) == case[1], case

<mask token>
test_cases = [([1, 2, 3, 4, 5], [5, 4, 3, 2, 1]), ([1, 2], [2, 1]), ([], [])]


def test_reverseList():
    s = Solution()
    for case in test_cases:
        assert getListFromLinkedList(s.reverseList(getLinkedList(case[0]))
            ) == case[1], case

from p206 import Solution
from common.linked_list import getLinkedList, getListFromLinkedList
test_cases = [([1, 2, 3, 4, 5], [5, 4, 3, 2, 1]), ([1, 2], [2, 1]), ([], [])]


def test_reverseList():
    s = Solution()
    for case in test_cases:
        assert getListFromLinkedList(s.reverseList(getLinkedList(case[0]))
            ) == case[1], case

from p206 import Solution

from common.linked_list import getLinkedList, getListFromLinkedList

test_cases = [
    ([1,2,3,4,5], [5,4,3,2,1]),
    ([1,2], [2,1]),
    ([], []),
]


def test_reverseList():
    s = Solution()
    for case in test_cases:
        assert getListFromLinkedList(s.reverseList(getLinkedList(case[0]))) == case[1], case
