-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor version matching, add test for blast max version, update readme
- Loading branch information
1 parent
53fa57a
commit 7efe469
Showing
4 changed files
with
78 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import unittest | ||
import operator | ||
from rna_blast_analyze.BR_core.BA_verify import version_check | ||
|
||
|
||
class TestBlastParser(unittest.TestCase): | ||
def test_less(self): | ||
self.assertTrue( | ||
version_check([2, 1, 0], [2, 0, 0], '', '') | ||
) | ||
|
||
def test_greater(self): | ||
self.assertTrue( | ||
version_check([2, 0, 0], [2, 1, 0], '', '', op=operator.le) | ||
) | ||
|
||
def test_equal(self): | ||
self.assertTrue( | ||
version_check([1, 1, 1], [1, 1, 1], '', '') | ||
) | ||
|
||
def test_equal2(self): | ||
self.assertTrue( | ||
version_check([1, 1, 1], [1, 1, 1], '', '', op=operator.le) | ||
) |