Sha256: 08b373e7ca32824e5fe3a32e680d812175de2caed5020a79f8621e2323ac366f
Contents?: true
Size: 398 Bytes
Versions: 5
Compression:
Stored size: 398 Bytes
Contents
require 'spec_helper' describe "Regexps" do it "parses a regexp as a s(:lit)" do opal_parse("/lol/").should == [:regexp, /lol/] end it "parses regexp options" do opal_parse("/lol/i").should == [:regexp, /lol/i] end it "can parse regexps using %r notation" do opal_parse('%r(foo)').should == [:regexp, /foo/] opal_parse('%r(foo)i').should == [:regexp, /foo/i] end end
Version data entries
5 entries across 5 versions & 1 rubygems