summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-11-15 14:30:04 +0100
committerWojtek Kosior <koszko@koszko.org>2021-11-15 14:30:04 +0100
commitd51f29c31118a3d10a4ee0eb4dc648da6dbc68bd (patch)
treef608dec6af2948b0a633d2bfca8d542012bc33b7 /src/test
parent9a24837fcf9dfe06f4b6ef6c5a752f83ea7b1a43 (diff)
downloadhaketilo-hydrilla-d51f29c31118a3d10a4ee0eb4dc648da6dbc68bd.tar.gz
haketilo-hydrilla-d51f29c31118a3d10a4ee0eb4dc648da6dbc68bd.zip
remove unused functions
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_pydrilla.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/test/test_pydrilla.py b/src/test/test_pydrilla.py
index 0ed5fa9..5937db9 100644
--- a/src/test/test_pydrilla.py
+++ b/src/test/test_pydrilla.py
@@ -52,39 +52,3 @@ def test_normalize_version():
assert pydrilla.normalize_version([4, 5, 3, 0, 0]) == [4, 5, 3]
assert pydrilla.normalize_version([1, 0, 5, 0]) == [1, 0, 5]
assert pydrilla.normalize_version([3, 3]) == [3, 3]
-
-### pad_versions() and compare_versions() likely won't be needed
-
-# def test_compare_versions():
-# compare_versions = pydrilla.compare_versions
-# # without revision
-# assert compare_versions([43], [43]) == 0
-# assert compare_versions([54], [34]) == 1
-# assert compare_versions([1], [3]) == -1
-# assert compare_versions([10, 2], [10, 2]) == 0
-# assert compare_versions([11, 6], [11, 2]) == 1
-# assert compare_versions([3, 0], [3, 8]) == -1
-# assert compare_versions([1, 2, 3], [1, 2]) == 1
-# assert compare_versions([1, 2], [1, 2, 3]) == -1
-# assert compare_versions([1], [1, 0, 0]) == 0
-
-# # with revision
-# assert compare_versions([43], [43], rev2=3) == -1
-# assert compare_versions([54], [34]), rev2=41) == 1
-# assert compare_versions([1], [3]), rev1=6) == -1
-# assert compare_versions([10, 2], [10, 2]), rev1=8, rev2=5) == 1
-# assert compare_versions([11, 6], [11, 2]), rev2=19) == 1
-# assert compare_versions([3, 0], [3, 8]), rev2=5) == -1
-# assert compare_versions([1, 2, 3], [1, 2]), rev1=4) == 1
-# assert compare_versions([1, 2], [1, 2, 3]), rev2=7) == -1
-# assert compare_versions([1], [1, 0, 0]), rev2=9, rev1=9) == 0
-
-# from functools import cmp_to_key
-
-# versions = [[43], [54], [3, 0], [34], [3], [1], [4, 5, 3], [1, 0, 5],
-# [3, 3], [10, 2], [11, 2], [11, 6], [3, 8], [1, 2], [1, 2, 3],
-# [1, 0, 0]]
-# versions.sort(cmp_to_key(compare_versions))
-# assert versions == [[1], [1, 0, 0], [1, 0, 5], [1, 2], [1, 2, 3], [3, 0],
-# [3], [3, 3], [3, 8], [4, 5, 3], [10, 2], [11, 2],
-# [11, 6], [34], [43], [54]]