File: fix_test_suit

package info (click to toggle)
ruby-cassiopee 0.1.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 156 kB
  • ctags: 70
  • sloc: ruby: 1,017; makefile: 9
file content (38 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Subject: fix test
Description: One test has an wrong argument, on branch
 master of cassiopee repository it was fixed.
 REMEMBER: When the upstream was updated remove this patch
Author: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Last-Updated: 29/07/2016
--- a/tests/test-suite.rb
+++ b/tests/test-suite.rb
@@ -8,7 +8,7 @@
 
 class TestCrawler < Test::Unit::TestCase
 
- 
+
   def test_exactsearch
     crawler = Cassiopee::Crawler.new
     #crawler.setLogLevel(Logger::DEBUG)
@@ -28,7 +28,7 @@
   end
 
 
-  def test_ambiguous 
+  def test_ambiguous
     crawler = Cassiopee::Crawler.new
     crawler.loadAmbiguityFile(File.join(File.dirname(__FILE__), 'amb.map'))
     crawler.indexString('aaaaaaaaaaacgttttttt')
@@ -54,10 +54,7 @@
   def test_levenshteinsearch2
     crawler = Cassiopee::Crawler.new
     crawler.indexString('aaaaacgtttttt')
-    matches = crawler.searchApproximate('ac',-2)
-    matches.each do |match|
-      puts match.to_s 
-    end
+    matches = crawler.searchApproximate('ac',0)
     assert_equal(1,matches.length)
   end