spec/rley/parser/earley_parser_spec.rb in rley-0.0.08 vs spec/rley/parser/earley_parser_spec.rb in rley-0.0.09

- old
+ new

@@ -280,11 +280,11 @@ { origin: 0, production: prod_T, dot: -1 }, { origin: 0, production: prod_M2, dot: -1 }, { origin: 0, production: prod_S2, dot: -1 }, { origin: 0, production: prod_M1, dot: 1 }, { origin: 0, production: prod_P, dot: -1 }, - { origin: 0, production: prod_S1, dot: 1 }, + { origin: 0, production: prod_S1, dot: 1 } ] compare_state_set(parse_result.chart[1], expectations) ###################### S(2): 2 + . 3 * 4 @@ -295,11 +295,11 @@ # (4) T -> . integer, 2 # predict from (3) expectations = [ { origin: 0, production: prod_S1, dot: 2 }, { origin: 2, production: prod_M1, dot: 0 }, { origin: 2, production: prod_M2, dot: 0 }, - { origin: 2, production: prod_T, dot: 0 }, + { origin: 2, production: prod_T, dot: 0 } ] compare_state_set(parse_result.chart[2], expectations) ###################### S(3): 2 + 3 . * 4 # Expectation chart[3]: @@ -322,10 +322,10 @@ # (1) M -> M "*" . T, 2 # scan from S(3) 4 # (2) T -> . number, 4 # predict from (1) expectations = [ { origin: 2, production: prod_M1, dot: 2 }, - { origin: 4, production: prod_T, dot: 0 }, + { origin: 4, production: prod_T, dot: 0 } ] compare_state_set(parse_result.chart[4], expectations) ###################### S(5): 2 + 3 * 4 . # Expectation chart[5]: