Running ‘testthat.R’ [13s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #! /usr/bin/env Rscript
  > 
  > library(testthat)
  > library(rly)
  > 
  > test_check("rly")
  ── 1. Error: (unknown) (@test.example.basic.R#695)  ────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. rly::yacc(Parser)
   2. LRGeneratedTable$new(grammar, method, debuglog)
   3. .subset2(public_bind_env, "initialize")(...)
   4. self$lr_parse_table()
  
  ── 2. Error: pkg_test (@test.pkg_test1.R#82)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. rly::yacc(Parser)
   2. LRGeneratedTable$new(grammar, method, debuglog)
   3. .subset2(public_bind_env, "initialize")(...)
   4. self$lr_parse_table()
  
  ── 3. Failure: precedence (@test.yacc_badprec3.R#51)  ──────────────────────────
  `rly::yacc(Parser)` threw an error.
  Message: attempt to select more than one element in get1index <real>
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(rly::yacc(Parser), NA)
   6. rly::yacc(Parser)
   7. LRGeneratedTable$new(grammar, method, debuglog)
   8. .subset2(public_bind_env, "initialize")(...)
   9. self$lr_parse_table()
  
  ── 4. Error: error (@test.yacc_error5.R#104)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. rly::yacc(Parser)
   2. LRGeneratedTable$new(grammar, method, debuglog)
   3. .subset2(public_bind_env, "initialize")(...)
   4. self$lr_parse_table()
  
  ── 5. Error: error (@test.yacc_error6.R#88)  ───────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. rly::yacc(Parser)
   2. LRGeneratedTable$new(grammar, method, debuglog)
   3. .subset2(public_bind_env, "initialize")(...)
   4. self$lr_parse_table()
  
  ── 6. Error: error (@test.yacc_noerror.R#49)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser), "WARN .* no p_error\\(\\) function is defined")
   10. rly::yacc(Parser)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 7. Error: no p (@test.yacc_nop.R#52)  ───────────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser), "WARN .* statement_expr: Possible grammar rule defined without p_ prefix")
   10. rly::yacc(Parser)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 8. Error: not function (@test.yacc_notfunc.R#50)  ───────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser), "WARN .* p_statement_assign not defined as a function")
   10. rly::yacc(Parser)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 9. Error: reduce (@test.yacc_rr.R#55)  ──────────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser, debug = TRUE), "Generating LALR tables \nWARN .* 1 reduce/reduce conflict\nWARN .* reduce/reduce conflict in state 21 resolved using rule \\(statement -> NAME EQUALS NUMBER\\)\nWARN .* rejected rule \\(expression -> NUMBER\\) in state 21")
   10. rly::yacc(Parser, debug = TRUE)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 10. Error: rr_unused (@test.yacc_rr_unused.R#28)  ───────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser, debug = TRUE), "WARN .* no p_error\\(\\) function is defined\nGenerating LALR tables \nWARN .* 3 reduce/reduce conflicts\nWARN .* reduce/reduce conflict in state 2 resolved using rule \\(rule3 -> A\\)\nWARN .* rejected rule \\(rule4 -> A\\) in state 2\nWARN .* reduce/reduce conflict in state 2 resolved using rule \\(rule3 -> A\\)\nWARN .* rejected rule \\(rule5 -> A\\) in state 2\nWARN .* reduce/reduce conflict in state 2 resolved using rule \\(rule4 -> A\\)\nWARN .* rejected rule \\(rule5 -> A\\) in state 2\nWARN .* Rule \\(rule5 -> A\\) is never reduced")
   10. rly::yacc(Parser, debug = TRUE)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  Generating LALR tables 
  ── 11. Error: token (@test.yacc_simple.R#51)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. rly::yacc(Parser, debug = TRUE)
   2. LRGeneratedTable$new(grammar, method, debuglog)
   3. .subset2(public_bind_env, "initialize")(...)
   4. self$lr_parse_table()
  
  ── 12. Error: shift (@test.yacc_sr.R#47)  ──────────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser, debug = TRUE), "Generating LALR tables \nWARN .* 20 shift/reduce conflicts")
   10. rly::yacc(Parser, debug = TRUE)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 13. Error: grammar (@test.yacc_unused.R#104)  ───────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser2), "WARN .* Rule exprlist defined, but not used\nWARN .* There is 1 unused rule\nWARN .* Symbol exprlist is unreachable")
   10. rly::yacc(Parser2)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ── 14. Error: grammar (@test.yacc_unused_rule.R#55)  ───────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
    1. testthat::expect_output(rly::yacc(Parser), "WARN .* Rule integer defined, but not used\nWARN .* There is 1 unused rule\nWARN .* Symbol integer is unreachable")
   10. rly::yacc(Parser)
   11. LRGeneratedTable$new(grammar, method, debuglog)
   12. .subset2(public_bind_env, "initialize")(...)
   13. self$lr_parse_table()
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 179 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 14 ]
  1. Error: (unknown) (@test.example.basic.R#695) 
  2. Error: pkg_test (@test.pkg_test1.R#82) 
  3. Failure: precedence (@test.yacc_badprec3.R#51) 
  4. Error: error (@test.yacc_error5.R#104) 
  5. Error: error (@test.yacc_error6.R#88) 
  6. Error: error (@test.yacc_noerror.R#49) 
  7. Error: no p (@test.yacc_nop.R#52) 
  8. Error: not function (@test.yacc_notfunc.R#50) 
  9. Error: reduce (@test.yacc_rr.R#55) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted