Skip to content

Commit

Permalink
Revert "Fix timeSeries tests on M1 architecture"
Browse files Browse the repository at this point in the history
This reverts commit 917934b. The call
to expect_identical() was not the problem.
  • Loading branch information
joshuaulrich committed Nov 24, 2023
1 parent 7857889 commit a917ff4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions inst/tinytest/test-timeSeries.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,26 @@ if (requireNamespace("timeSeries", quietly = TRUE)) {
# test 'reclass'

info_msg <- "test.timeSeries_reclass"
expect_equal(sample.timeSeries,reclass(try.xts(sample.timeSeries)), info = info_msg)
expect_identical(sample.timeSeries,reclass(try.xts(sample.timeSeries)), info = info_msg)

info_msg <- "test.timeSeries_reclass_subset_reclass_j1"
expect_equal(sample.timeSeries[,1],reclass(try.xts(sample.timeSeries))[,1], info = info_msg)
expect_identical(sample.timeSeries[,1],reclass(try.xts(sample.timeSeries))[,1], info = info_msg)

info_msg <- "test.timeSeries_reclass_subset_as.xts_j1"
spl <- sample.timeSeries[,1:2]
respl <- reclass(try.xts(sample.timeSeries)[,1:2])
# timeSeries fails to maintain @positions correctly if one column is selected

expect_equal(spl,respl, info = info_msg)
expect_identical(spl,respl, info = info_msg)
#expect_identical(1,1, info = info_msg)

info_msg <- "test.timeSeries_reclass_subset_timeSeries_j1"
spl <- sample.timeSeries[,1:2]
respl <- reclass(try.xts(sample.timeSeries[,1:2]))
# timeSeries fails to maintain @positions correctly if one column is selected

expect_equal(spl,respl, info = info_msg)
expect_identical(spl,respl, info = info_msg)
# expect_identical(1,1, info = info_msg)

# end 'reclass'
###############################################################################
Expand Down

0 comments on commit a917ff4

Please sign in to comment.