Skip to content

Commit 53afd19

Browse files
committed
Merge branch 'snapshots' of https://github.com/stan-dev/cmdstanr into snapshots
2 parents 6201b56 + 7cc635b commit 53afd19

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/testthat/helper-custom-expectations.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ expect_equal_ignore_order <- function(object, expected, ...) {
128128

129129
expect_not_true <- function(...) expect_false(isTRUE(...))
130130

131+
# strips numeric values (which may change slightly with different hardware or compilers)
132+
# allowing us to still verify names, ordering, column headers, row counts, etc.
131133
transform_print_snapshot <- function(x) {
132134
vapply(x, function(line) {
133135
line <- trimws(line)

0 commit comments

Comments
 (0)