Skip to content

Commit acc73e2

Browse files
committed
add tests
1 parent 15874c4 commit acc73e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

osv/ecosystems/alpine_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ def test_apk(self):
7474
ecosystem.sort_key('13.0.14.5-r1'), ecosystem.sort_key('7.64.3-r2'))
7575
self.assertLess(
7676
ecosystem.sort_key('13.0.14.5-r1'), ecosystem.sort_key('16.6-r0'))
77+
78+
# Double check >= / <= methods: https://github.com/google/osv.dev/pull/3978
79+
self.assertGreaterEqual(
80+
ecosystem.sort_key('1.10.0-r0'), ecosystem.sort_key('1.2.0-r0'))
81+
self.assertLessEqual(
82+
ecosystem.sort_key('1.2.0-r0'), ecosystem.sort_key('1.10.0-r0'))
7783

7884
def test_apk_ecosystems(self):
7985
"""Test apk-based ecosystems return an APK ecosystem."""

0 commit comments

Comments
 (0)