Sha256: 92b409837c53ee082397e377418c5d724a0ab99449af0b60320ae8cf107187e0

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb'))

class BooleanAssignmentTest < Test::Unit::TestCase

  include KoiReferenceParser
  
  test "assignment of boolean true" do
    tree = Parser.parse('test = true')
    assert_assigns_expression(TrueLiteral, nil, tree)
  end
  
  test "assignment of boolean false" do
    tree = Parser.parse('test = false')
    assert_assigns_expression(FalseLiteral, nil, tree)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koi-reference-parser-0.0.3 test/unit/assignment/boolean_assignment_test.rb