Sha256: 471c8a95e795f1b35b5feff5a04a17d6d02d251a41c311eacf3de5941ad46aa5
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
require 'test_helper' class TestScanCollection < Test::Unit::TestCase def test_scan_pcm assert_equal File.read('test/data/KLF4_f2_scan_results_default_cutoff.txt').gsub("\r\n", "\n"), Helpers.scan_collection_output('test/data/KLF4_f2.pcm test/data/test_collection.yaml --silent --pcm').gsub("\r\n","\n") end def test_scan_default_cutoff assert_equal File.read('test/data/KLF4_f2_scan_results_default_cutoff.txt').gsub("\r\n", "\n"), Helpers.scan_collection_output('test/data/KLF4_f2.pat test/data/test_collection.yaml --silent').gsub("\r\n","\n") end def test_scan_and_output_all_results assert_equal File.read('test/data/KLF4_f2_scan_results_all.txt').gsub("\r\n", "\n"), Helpers.scan_collection_output('test/data/KLF4_f2.pat test/data/test_collection.yaml --all --silent').gsub("\r\n","\n") end def test_scan_precise_mode assert_equal File.read('test/data/KLF4_f2_scan_results_precise_mode.txt').gsub("\r\n","\n"), Helpers.scan_collection_output('test/data/KLF4_f2.pat test/data/test_collection.yaml --precise --all --silent').gsub("\r\n", "\n") end def test_process_query_pwm_from_stdin assert_equal Helpers.scan_collection_output('test/data/KLF4_f2.pat test/data/test_collection.yaml --silent'), Helpers.provide_stdin(File.read('test/data/KLF4_f2.pat')) { Helpers.scan_collection_output('.stdin test/data/test_collection.yaml --silent') } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
macroape-3.3.6 | test/scan_collection_test.rb |
macroape-3.3.5 | test/scan_collection_test.rb |