Skip to content

Commit

Permalink
tests for scoped constants
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Aug 30, 2011
1 parent c686c00 commit 6ddfa47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/bootstrap/ast/scoped_constant_test.rb
@@ -0,0 +1,11 @@
require File.expand_path('../../test_helper', __FILE__)
MiniTest::Unit.autorun if $0 == __FILE__

class ASTScopedConstantTest < MiniTest::Unit::TestCase
include LiteralTest
literal Reak::AST::ScopedConstant

parses "Foo.Bar", "Bar.Baz", "Object.Array"
parses_not "Foo::Bar"
evaluates("Reak.AST") { |c| assert_equal Reak::AST, c }
end

0 comments on commit 6ddfa47

Please sign in to comment.