Skip to content

Instantly share code, notes, and snippets.

/Rsec

Created April 21, 2014 17:20
Show Gist options
  • Save anonymous/11149395 to your computer and use it in GitHub Desktop.
Save anonymous/11149395 to your computer and use it in GitHub Desktop.
require 'rsec'
include Rsec::Helpers
test= ('a'.r ^ 'b'.r) | 'abcd'.r
test.parse('ab') # => nil ; normal
test.parse('ac') # => 'a' ; normal
test.parse('abcd') # => nil ; why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment