Sha256: f9edd97749188bde121724d1cf3c4e84efbef151bfb6f5d1b688ef0ffb612027
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
=begin Copyright © 2007 John Vorhauer Contact me at langa@vorhauer.de near 50°55'N+6°55'E. This file is part of Langa. Langa is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Langa is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Langa. If not, see <http://www.gnu.org/licenses/>. For a detailed functional description of Langa see the README file =end $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'rubygems' require 'test/unit' require 'langa/utilities.rb' class TestUtilities < Test::Unit::TestCase def test_string_to_unicode assert_equal([228, 246, 252], 'äöü'.to_unicode) end def test_array_to_utf8 assert_equal('äöü', [228, 246, 252].to_utf8) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
langa-1.0.0 | test/tc_utilities.rb |