Skip to content

Commit

Permalink
Update link + add test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 29, 2024
1 parent 4a568de commit 80a58b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[![Codecov test coverage](https://codecov.io/gh/r-tmap/tmap/branch/master/graph/badge.svg)](https://app.codecov.io/gh/r-tmap/tmap?branch=master)
[![CRAN](https://www.r-pkg.org/badges/version/tmap)](https://cran.r-project.org/package=tmap)
[![CRAN checks](https://cranchecks.info/badges/worst/tmap)](https://cran.r-project.org/web/checks/check_results_tmap.html)
[![Downloads](http://cranlogs.r-pkg.org/badges/tmap?color=brightgreen)](https://www.r-pkg.org:443/pkg/tmap)
[![License](https://img.shields.io/badge/License-GPL%20v3-brightgreen.svg?style=flat)](http://www.gnu.org/licenses/gpl-3.0.html)
[![Downloads](https://cranlogs.r-pkg.org/badges/tmap?color=brightgreen)](https://www.r-pkg.org:443/pkg/tmap)
[![License](https://img.shields.io/badge/License-GPL%20v3-brightgreen.svg?style=flat)](https://www.gnu.org/licenses/gpl-3.0.html)
[![r-universe](https://r-tmap.r-universe.dev/badges/tmap)](https://r-tmap.r-universe.dev/tmap)
<!-- badges: end -->

Expand Down
5 changes: 5 additions & 0 deletions tests/testthat/test-v3.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ test_that("v3 legends work", {
tm_fill("income_grp") +
tm_add_legend(type = "fill", title = "hello", labels = c("1", "2", "3"), col = "blue", border.col = "black")
)

expect_message(
tm_shape(World) +
tm_fill("income_grp", border.alpha = 0.5)
)
})

test_that("title size works with many titles.", {
Expand Down

0 comments on commit 80a58b8

Please sign in to comment.