blob: 8c0d2978b717dfd6627f71b7a44f5562ee9c3739 (
plain)
1
2
3
4
5
6
7
|
require_relative '../../spec_helper'
describe "MatchData#captures" do
it "returns an array of the match captures" do
/(.)(.)(\d+)(\d)/.match("THX1138.").captures.should == ["H","X","113","8"]
end
end
|