Sha256: 952d5d7296fb4235099a496decf43d62401a8d667ad4b915776d9dc1a5717749
Contents?: true
Size: 1.43 KB
Versions: 33
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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
33 entries across 33 versions & 1 rubygems