File: re_spec.rb

package info (click to toggle)
ruby-parslet 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 908 kB
  • ctags: 473
  • sloc: ruby: 5,220; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

describe Parslet::Atoms::Re do
  describe "construction" do
    include Parslet
    
    it "should allow match(str) form" do
      match('[a]').should be_a(Parslet::Atoms::Re)
    end 
    it "should allow match[str] form" do
      match['a'].should be_a(Parslet::Atoms::Re)
    end 
  end
end