Skip to content

Commit

Permalink
udpate test baseline for cable
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Oct 15, 2024
1 parent 897cc3f commit c08b71a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/testthat/test-summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ context("summary")

test_that("summary.neuronlist behaves", {
expect_is(s <- summary(Cell07PNs), 'data.frame')
expect_equal_to_reference(s, file = 'testdata/summary_cell07pns.rds', tolerance=1e-3)
expect_known_value(s, file = test_path('testdata/summary_cell07pns.rds'), tolerance=1e-3)
expect_is(summary(kcs20, veclength=1.2), 'data.frame')

skip_if_not(use_natcpp())
Expand All @@ -12,8 +12,9 @@ test_that("summary.neuronlist behaves", {
# a discrepancy masked by tolerance = 1e-3
# this is down to some neurons having cycles
expect_equal(summary(Cell07PNs), s, tolerance = 1e-3)
expect_equal_to_reference(summary(Cell07PNs), file = 'testdata/summary_cell07pns.rds')

expect_known_value(summary(Cell07PNs),
file = test_path('testdata/summary_cell07pns.rds'),
tolerance=1e-3)
})

context('print')
Expand Down
Binary file modified tests/testthat/testdata/summary_cell07pns.rds
Binary file not shown.

0 comments on commit c08b71a

Please sign in to comment.