Skip to content

Commit

Permalink
correct test because g.loadlog now outputs NULL instead of a zero row…
Browse files Browse the repository at this point in the history
… data.frame
  • Loading branch information
vincentvanhees committed Dec 11, 2024
1 parent f204c32 commit 6e6acdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_gloadlog.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test_that("gloadlog is able to load different log formats", {
save(ID, rec_starttime, file = "mytestdir/dummyms3.RData")
logs6 = g.loadlog(loglocation = fn, coln1 = 2, colid = 1,
meta.sleep.folder = tempdir , desiredtz = "")
expect_equal(nrow(logs6$sleeplog), 0)
expect_equal(logs6$sleeplog, NULL)
expect_equal(nrow(logs6$bedlog), 3)
expect_equal(colnames(logs6$bedlog), c("ID", "night", "duration", "bedstart", "bedend"))
expect_equal(logs6$bedlog$night, c("1", "2", "3"))
Expand Down

0 comments on commit 6e6acdb

Please sign in to comment.