Sha256: d9f28e4b8be3cf168860a720305802292875d722ae91f62042be853e67cd5fc3
Contents?: true
Size: 676 Bytes
Versions: 7
Compression:
Stored size: 676 Bytes
Contents
require File.expand_path("../../helpers", __FILE__) class ExpressionFreeSpace < Test::Unit::TestCase def test_expression_white_space_quantify_raises_error regexp = %r{ a # Comment }x root = RP.parse(regexp) space = root[0] assert_equal( FreeSpace::WhiteSpace, space.class ) assert_raise( RuntimeError ) { space.quantify(:dummy, '#') } end def test_expression_comment_quantify_raises_error regexp = %r{ a # Comment }x root = RP.parse(regexp) comment = root[3] assert_equal( FreeSpace::Comment, comment.class ) assert_raise( RuntimeError ) { comment.quantify(:dummy, '#') } end end
Version data entries
7 entries across 7 versions & 1 rubygems