Commit 4281a0c2 authored by André Anjos's avatar André Anjos 💬

Merge branch '35-cannnot-provide-negative-values-to-the-apply_threshold-script' into 'master'

Resolve "cannnot provide negative values to the apply_threshold script"

Closes #35

See merge request !42
parents f1e77cb3 482691ac
Pipeline #14030 passed with stages
in 14 minutes and 18 seconds
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"""Applies a threshold to score file and reports error rates """Applies a threshold to score file and reports error rates
Usage: %(prog)s [-v...] [options] <threshold> <scores> Usage: %(prog)s [-v...] [options] [--] <threshold> <scores>
%(prog)s --help %(prog)s --help
%(prog)s --version %(prog)s --version
......
...@@ -86,6 +86,13 @@ def test_apply_threshold(): ...@@ -86,6 +86,13 @@ def test_apply_threshold():
from .script.apply_threshold import main from .script.apply_threshold import main
nose.tools.eq_(main(cmdline), 0) nose.tools.eq_(main(cmdline), 0)
cmdline = [
'--',
'-0.5',
TEST_SCORES,
]
nose.tools.eq_(main(cmdline), 0)
def test_compute_perf_5col(): def test_compute_perf_5col():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment