Skip to content

Commit

Permalink
update tests for altrep serializations
Browse files Browse the repository at this point in the history
  • Loading branch information
traversc committed Nov 27, 2023
1 parent 792ae16 commit bef8f3d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version 0.25.6 (2023-3-26)
Version 0.25.6 (2023-11-27)
* Fix tests to account for ALTREP serialization
* Add filenames to error messages (https://github.com/traversc/qs/issues/75)
* Fix unit tests for big endian system (https://github.com/traversc/qs/issues/77)
* Check for GCC and add `-latomic` flag which is sometimes required (https://github.com/traversc/qs/issues/76)
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: qs
Type: Package
Title: Quick Serialization of R Objects
Version: 0.25.6
Date: 2023-3-26
Date: 2023-11-27
Authors@R: c(
person("Travers", "Ching", email = "[email protected]", role = c("aut", "cre", "cph")),
person("Yann", "Collet", role = c("ctb", "cph"), comment = "Yann Collet is the author of the bundled zstd, lz4 and xxHash code"),
Expand Down
4 changes: 0 additions & 4 deletions tests/correctness_testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ printCarriage <- function(x) {
cat(x, "\r")
}

serialize_identical <- function(x1, x2) {
identical(serialize(x1, NULL), serialize(x2, NULL))
}

################################################################################################

qsave_rand <- function(x, file) {
Expand Down
5 changes: 4 additions & 1 deletion tests/qattributes_testing.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ qsave_rand <- function(x, file) {
}

qattributes_rand <- function(file) {
ar <- sample(c(T,F),1)
# ar <- sample(c(T,F),1)
# don't use altrep to avoid serialization differences
# attributes_serialize_identical won't pass with ALTREP
ar <- FALSE
nt <- sample(5,1)
qattributes(file, use_alt_rep = ar, nthreads = nt, strict = T)
}
Expand Down

0 comments on commit bef8f3d

Please sign in to comment.