Sha256: ffb2932304f84f7c7745234febe2bde0042b4cf12caeafcb6413ce1a000ca73c
Contents?: true
Size: 515 Bytes
Versions: 25
Compression:
Stored size: 515 Bytes
Contents
require File.expand_path("../../helpers", __FILE__) class LexerKeep < Test::Unit::TestCase def test_lex_keep_token regexp = /ab\Kcd/ tokens = RL.lex(regexp) assert_equal :keep, tokens[1].type assert_equal :mark, tokens[1].token end def test_lex_keep_nested regexp = /(a\Kb)|(c\\\Kd)ef/ tokens = RL.lex(regexp) assert_equal :keep, tokens[2].type assert_equal :mark, tokens[2].token assert_equal :keep, tokens[9].type assert_equal :mark, tokens[9].token end end
Version data entries
25 entries across 25 versions & 2 rubygems