Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Re-Run #221

Closed
brodieG opened this issue Apr 20, 2017 · 1 comment
Closed

Crash on Re-Run #221

brodieG opened this issue Apr 20, 2017 · 1 comment

Comments

@brodieG
Copy link
Owner

brodieG commented Apr 20, 2017

> library(unitizer)
> unitize('val')

Possible matching files from "tests/unitizer":
  1: validate.args.R
  2: validate.R
unitizer> 2
Selected file: validate.R
+------------------------------------------------------------------------------+
| unitizer for: unitizer/validate.R                                            |
+------------------------------------------------------------------------------+

                       Pass Fail  New
          Tokens Pass    22    -    -
          Tokens Fail    30    -    -
 Compound Expressions     9    -    -
   Other Return Modes     3    -    -
     Multi-line Stuff     5    -    -
             Language     -    -    4
.....................................
                         69    -    4

= Language =====================================================================

- New --------------------------------------------------------------------------

| The 4 tests in this section are new. Add tests to store ([Y]es, [N]o, [P]rev, 
| [B]rowse, [R]erun, [Q]uit, [H]elp)?

> validate(quote(quote(a + b)), quote(x2 + x3))
Error in validate(quote(quote(a + b)), quote(x2 + x3)) : 
  `quote(x2 + x3)[[1]]` should be a call to `quote` (is a call to `+`)

unitizer> validate(quote(a + b), quote(x2 + x3))
[1] TRUE
unitizer> N

> x <- quote(quote(a + b))
> validate(x, quote(x2 + x3))
[1] TRUE

unitizer> R

| Toggling re-run mode ON for this unitizer

= Finalize Unitizer ============================================================

| You have 3 unreviewed tests; press `B` to browse tests, `U` to go to first 
| unreviewed test.

| You made no changes to the unitizer so there is no need to update it.  While 
| unnecessary, you can force an update by typing O at the prompt.

| Re-run unitizer ([Y]es, [P]rev, [B]rowse, [U]nreviewed, [R]erun, f[O]rce)?

unitizer> Y

| unitizer unchanged.

Error in !all.equal(`attributes<-`(tests.parsed.prev[[i]], NULL), `attributes<-`(tests.parsed[[i]],  : 
  invalid argument type
| Unexpectedly exited before storing unitizer; tests were not saved or changed.
@brodieG brodieG added the bug label Apr 20, 2017
@brodieG brodieG added this to the 1.4.3 milestone Apr 20, 2017
@brodieG
Copy link
Owner Author

brodieG commented Apr 20, 2017

Hmm, can't seem to reproduce anymore...

Okay, I did reproduce it, but can't do so consistently.

brodieG added a commit that referenced this issue Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant