mirror of
https://github.com/jlengrand/Coding4Interviews.git
synced 2026-03-10 08:11:24 +00:00
21 lines
343 B
Python
21 lines
343 B
Python
"""
|
|
Unit Tests for the Linked Lists implementations
|
|
@jlengrand
|
|
2013/12
|
|
"""
|
|
|
|
from ll import SingleListItem
|
|
|
|
import unittest
|
|
|
|
class test_single_linked_list_item(unittest.TestCase):
|
|
|
|
def test_item(self):
|
|
|
|
a = 12
|
|
t = SingleListItem(12, None)
|
|
|
|
self.assertEqual(a, t.value)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main() |