forked from bhupathyap/Huffman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
36 lines (26 loc) · 710 Bytes
/
Copy pathtest.py
File metadata and controls
36 lines (26 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Test functions goes here
import unittest
from huffman import encode, decode
class TestHuffman(unittest.TestCase):
# write all your tests here
# function name should be prefixed with 'test'
def test_encode(self):
encode("story.txt", "story.huff")
assert True
def test_decode(self):
decode("story.huff", "story_.txt")
assert True
def test_encode(self):
encode("story_1.txt", "story_1.huff")
assert True
def test_decode(self):
decode("story_1.huff", "story_1_.txt")
assert True
def test_encode(self):
encode("story_2.txt", "story_2.huff")
assert True
def test_decode(self):
decode("story_2.huff", "story_2_.txt")
assert True
if __name__ == '__main__':
unittest.main()