[DRE-commits] [ruby-uconv] 01/01: debian/ruby-tests.rb: add a very simple unit test

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Mar 24 22:21:36 UTC 2016


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

terceiro pushed a commit to branch master
in repository ruby-uconv.

commit d184a74316a362abc2681ebcf72be0c87605dd01
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Mar 24 19:21:27 2016 -0300

    debian/ruby-tests.rb: add a very simple unit test
---
 debian/changelog     |  1 +
 debian/ruby-tests.rb | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b9dbcba..a81639c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ ruby-uconv (0.6.1-3) UNRELEASED; urgency=medium
   [ Antonio Terceiro ]
   * debian/tests/control: don't try rubygems dependency resolution; this
     package is not a proper Rubygems package (Closes: #819078)
+  * debian/ruby-tests.rb: add a very simple unit test
 
  -- Cédric Boutillier <boutil at moszumanska.debian.org>  Thu, 24 Mar 2016 19:10:44 -0300
 
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index fba314e..c63d2b9 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1 +1,11 @@
+ARGV.push('-v')
+require 'test/unit'
 require 'uconv'
+
+class UconvTest < Test::Unit::TestCase
+
+  def test_utf8_utf16_roundrip
+    assert_equal "á", Uconv.u16tou8(Uconv.u8tou16("á"))
+  end
+
+end

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



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