spec/spec_helper.rb in raabro-1.0.5 vs spec/spec_helper.rb in raabro-1.1.0

- old
+ new

@@ -1,8 +1,8 @@ # -# Specifying rufus-scheduler +# Specifying raabro # # Sat Sep 19 21:12:35 JST 2015 # require 'pp' @@ -15,10 +15,12 @@ def ta(i); Raabro.str(nil, i, 'ta'); end def to(i); Raabro.str(nil, i, 'to'); end def tu(i); Raabro.str(nil, i, 'tu'); end def to_plus(input); Raabro.rep(:tos, input, :to, 1); end +def to_star(input); Raabro.rep(nil, input, :to, 0); end +def to_qmark(input); Raabro.rep(nil, input, :to, 0, 1); end def nta(i); Raabro.str('the-ta', i, 'ta'); end def cha(i); Raabro.rex(nil, i, /\A[a-z]/); end def com(i); Raabro.str(nil, i, ','); end @@ -26,9 +28,15 @@ def lt(i); Raabro.str(nil, i, '<'); end def gt(i); Raabro.str(nil, i, '>'); end def onex(i); Raabro.str(:onex, i, 'x'); end def twox(i); Raabro.str(:twox, i, 'xx'); end +def deux(i); Raabro.str(:deux, i, 'xx'); end + +# testing eseq... +def acom(i); Raabro.rex(nil, i, /,?/); end +def aval(i); Raabro.rex(nil, i, /[a-z]?/); end +def arr(i); Raabro.eseq(nil, i, :lt, :aval, :acom, :gt); end # # test modules