Sha256: fdc23e712e9269a8ffc1ea126261691394505ae97462efe92d8c9890d467b8c5

Contents?: true

Size: 1.22 KB

Versions: 13

Compression:

Stored size: 1.22 KB

Contents

# Copyright (C) 2009-2019  Sutou Kouhei <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 VariableTest < Test::Unit::TestCase
  include GroongaTestUtils

  def setup
    setup_database
    @expression = Groonga::Expression.new
    @variable = @expression.define_variable
  end

  def test_value
    assert_nil(@variable.value)
    @variable.value = "morita"
    assert_equal("morita", @variable.value)
  end

  sub_test_case("#bulk?") do
    def test_true
      assert do
        @variable.bulk?
      end
    end

    def test_false
      assert do
        not @expression.bulk?
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rroonga-14.1.2 test/test-variable.rb
rroonga-12.1.0 test/test-variable.rb
rroonga-12.0.8 test/test-variable.rb
rroonga-12.0.2 test/test-variable.rb
rroonga-12.0.0 test/test-variable.rb
rroonga-11.0.6 test/test-variable.rb
rroonga-11.0.0 test/test-variable.rb
rroonga-10.0.6 test/test-variable.rb
rroonga-10.0.2 test/test-variable.rb
rroonga-10.0.1 test/test-variable.rb
rroonga-9.0.7-x64-mingw32 test/test-variable.rb
rroonga-9.0.7-x86-mingw32 test/test-variable.rb
rroonga-9.0.7 test/test-variable.rb