[DRE-commits] [ruby-cassiopee] 04/07: Add patch to fix tests

Luciano Prestes lucianopcbr-guest at moszumanska.debian.org
Tue Aug 2 19:52:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

lucianopcbr-guest pushed a commit to branch master
in repository ruby-cassiopee.

commit cba8d12e733af8263fc9754a00ca56e52e68e5db
Author: Luciano Prestes Cavalcanti <lucianopcbr at gmail.com>
Date:   Fri Jul 29 17:12:35 2016 -0300

    Add patch to fix tests
---
 debian/patches/fix_test_suit | 38 ++++++++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 39 insertions(+)

diff --git a/debian/patches/fix_test_suit b/debian/patches/fix_test_suit
new file mode 100644
index 0000000..07e3dbb
--- /dev/null
+++ b/debian/patches/fix_test_suit
@@ -0,0 +1,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 at 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
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4fa4fc9..91dbf34 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix_test_suit
 fixlibpath

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-cassiopee.git



More information about the Pkg-ruby-extras-commits mailing list