Sha256: 122ae9542537e76735a80527cd99aac2fc691e91301633753a51abd04c5cc6cb

Contents?: true

Size: 1.26 KB

Versions: 109

Compression:

Stored size: 1.26 KB

Contents

# Copyright (C) 2009  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

class EncodingTest < Test::Unit::TestCase
  include GroongaTestUtils

  def test_constants
    assert_equal(:default, Groonga::Encoding::DEFAULT)
    assert_equal(:none, Groonga::Encoding::NONE)
    assert_equal(:euc_jp, Groonga::Encoding::EUC_JP)
    assert_equal(:sjis, Groonga::Encoding::SJIS)
    assert_equal(:utf8, Groonga::Encoding::UTF8)
    assert_equal(:latin1, Groonga::Encoding::LATIN1)
    assert_equal(:koi8r, Groonga::Encoding::KOI8R)
  end

  def test_default
    Groonga::Encoding.default = :utf8
    assert_equal(:utf8, Groonga::Encoding.default)
  end
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
rroonga-4.0.3-x86-mingw32 test/test-encoding.rb
rroonga-4.0.3-x64-mingw32 test/test-encoding.rb
rroonga-4.0.3 test/test-encoding.rb
rroonga-4.0.2-x64-mingw32 test/test-encoding.rb
rroonga-4.0.2-x86-mingw32 test/test-encoding.rb
rroonga-4.0.2 test/test-encoding.rb
rroonga-4.0.1-x86-mingw32 test/test-encoding.rb
rroonga-4.0.1-x64-mingw32 test/test-encoding.rb
rroonga-4.0.1 test/test-encoding.rb
rroonga-4.0.0-x64-mingw32 test/test-encoding.rb
rroonga-4.0.0-x86-mingw32 test/test-encoding.rb
rroonga-4.0.0 test/test-encoding.rb
rroonga-3.1.2-x64-mingw32 test/test-encoding.rb
rroonga-3.1.2-x86-mingw32 test/test-encoding.rb
rroonga-3.1.2 test/test-encoding.rb
rroonga-3.1.1-x64-mingw32 test/test-encoding.rb
rroonga-3.1.1-x86-mingw32 test/test-encoding.rb
rroonga-3.1.1 test/test-encoding.rb
rroonga-3.1.0-x64-mingw32 test/test-encoding.rb
rroonga-3.1.0-x86-mingw32 test/test-encoding.rb