Rev 71755 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
### Moved from reg-tests-1c.R## envRefClass prototypes are a bit special -- broke all.equal() for baseenv()rc <- getClass("refClass")rp <- rc@prototypestr(rp) ## failedrp ## show() failed ..(ner <- new("envRefClass")) # show() failedstopifnot(all.equal(rp,rp), all.equal(ner,ner))be <- baseenv()system.time(stopifnot(all.equal(be,be)))## <- takes a few sec'sstopifnot(grepl("not identical.*character", print(all.equal(rp, ner))),grepl("not identical.*character", print(all.equal(ner, rp))))system.time(stopifnot(all.equal(globalenv(), globalenv())))## Much of the above failed in R <= 3.2.0proc.time()