Skip to content

Commit 869af0f

Browse files
committed
Complete tests for plot_MoranScatterplot()
1 parent cc0e3b5 commit 869af0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/testthat/test_plot_MoranScatterplot.R

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ test_that("check functionality", {
3535
expect_warning(plot_MoranScatterplot(1:100 - 2, log = "xy",
3636
legend = FALSE),
3737
"x-axis values rescaled because of log transform")
38+
expect_warning(plot_MoranScatterplot((1:100) - 20, log = "y",
39+
legend = FALSE),
40+
"y-axis values rescaled because of log transform \\(also in return df\\)")
41+
42+
expect_silent(plot_MoranScatterplot((1:100) - 2, log = "y",
43+
legend = FALSE))
3844

3945
obj.na <- obj
4046
obj.na@data$vn_values[c(24, 73)] <- NA

0 commit comments

Comments
 (0)