Sha256: 3c2d355f0f853bb7148ff2a5e043a860c2c8c687bf0b24342b8fa0860d2ba22e

Contents?: true

Size: 1.43 KB

Versions: 91

Compression:

Stored size: 1.43 KB

Contents

# -*- coding: utf-8 -*-
#
# Copyright (C) 2013  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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

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

  setup :setup_database

  setup
  def setup_schema
  end

  setup
  def setup_data
  end

  class Int64Test < self
    def setup_schema
      Groonga::Schema.define do |schema|
        schema.create_table("Values") do |table|
          table.int64("content")
        end
      end
      @values = Groonga["Values"]
    end

    data("Fixnum"     => -1,
         "Max Fixnum" => 2 ** 62 - 1,
         "Bignum"     => 2 ** 62)
    def test_select(value)
      @values.add(:content => value)
      result = @values.select do |record|
        record.content == value
      end
      assert_equal([value], result.collect(&:content))
    end
  end
end

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
rroonga-6.0.4-x86-mingw32 test/test-convert.rb
rroonga-6.0.4-x64-mingw32 test/test-convert.rb
rroonga-6.0.4 test/test-convert.rb
rroonga-6.0.2-x64-mingw32 test/test-convert.rb
rroonga-6.0.2-x86-mingw32 test/test-convert.rb
rroonga-6.0.2 test/test-convert.rb
rroonga-6.0.0-x64-mingw32 test/test-convert.rb
rroonga-6.0.0-x86-mingw32 test/test-convert.rb
rroonga-6.0.0 test/test-convert.rb
rroonga-5.1.1-x86-mingw32 test/test-convert.rb
rroonga-5.1.1-x64-mingw32 test/test-convert.rb
rroonga-5.1.1 test/test-convert.rb
rroonga-5.0.9-x86-mingw32 test/test-convert.rb
rroonga-5.0.9-x64-mingw32 test/test-convert.rb
rroonga-5.0.9 test/test-convert.rb
rroonga-5.0.8-x86-mingw32 test/test-convert.rb
rroonga-5.0.8-x64-mingw32 test/test-convert.rb
rroonga-5.0.8 test/test-convert.rb
rroonga-5.0.5-x86-mingw32 test/test-convert.rb
rroonga-5.0.5-x64-mingw32 test/test-convert.rb