Sha256: b7406ea00cec9974b0b5f855acb480c4b17978524d5638356b2dc5afa271de88

Contents?: true

Size: 728 Bytes

Versions: 13

Compression:

Stored size: 728 Bytes

Contents

# -*- coding: utf-8 -*-


require_relative 'helper'
require 'xot/rake'


Const      = 'const'
Zero       = 0
NonZero    = 1
ZeroStr    = '0'
NonZeroStr = '1'
True       = true
False      = false
TrueStr    = 'true'
FalseStr   = 'false'


class TestRake < Test::Unit::TestCase

  include Xot::Rake

  def test_set()
    assert_equal 'const', env(:Const, :dummy)
    assert_equal 0, env(:Zero, :dummy)
    assert_equal 1, env(:NonZero, :dummy)
    assert_equal 0, env(:ZeroStr, :dummy)
    assert_equal 1, env(:NonZeroStr, :dummy)
    assert_equal true, env(:True, :dummy)
    assert_equal false, env(:False, :dummy)
    assert_equal true, env(:TrueStr, :dummy)
    assert_equal false, env(:FalseStr, :dummy)
  end

end# TestRake

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
xot-0.1.34 test/test_rake.rb
xot-0.1.33 test/test_rake.rb
xot-0.1.32 test/test_rake.rb
xot-0.1.31 test/test_rake.rb
xot-0.1.30 test/test_rake.rb
xot-0.1.29 test/test_rake.rb
xot-0.1.28 test/test_rake.rb
xot-0.1.27 test/test_rake.rb
xot-0.1.26 test/test_rake.rb
xot-0.1.25 test/test_rake.rb
xot-0.1.24 test/test_rake.rb
xot-0.1.23 test/test_rake.rb
xot-0.1.22 test/test_rake.rb