Sha256: 8265759b388b4e00ddbf0c6cec189c80eccbd13556d864a01f1eb55823fb94a9
Contents?: true
Size: 480 Bytes
Versions: 7
Compression:
Stored size: 480 Bytes
Contents
require File.expand_path("../../helpers", __FILE__) class ExpressionSubexpression < Test::Unit::TestCase def test_subexpression_ts_te regx = /abcd|ghij|klmn|pqur/ root = RP.parse(regx) alt = root.first { 0 => [ 0, 4 ], 1 => [ 5, 9 ], 2 => [ 10, 14 ], 3 => [ 15, 19 ], }.each do |index, span| sequence = alt[index] assert_equal( span[0], sequence.ts ) assert_equal( span[1], sequence.te ) end end end
Version data entries
7 entries across 7 versions & 1 rubygems