From e5fffbf92eeaa7b1293441900927120d3d00cbe8 Mon Sep 17 00:00:00 2001 From: Nuno Teixeira Date: Tue, 2 Apr 2024 08:46:19 +0100 Subject: [PATCH] Update test-encoding.R: Fix test on FreeBSD Under FreeBSD test fails because it only skips linux, mac and solaris. Opimize logic and use this test only on windows. Fixes https://github.com/r-dbi/RSQLite/issues/502 --- tests/testthat/test-encoding.R | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/testthat/test-encoding.R b/tests/testthat/test-encoding.R index f0ba927c..e6f70ae0 100644 --- a/tests/testthat/test-encoding.R +++ b/tests/testthat/test-encoding.R @@ -34,9 +34,7 @@ test_that("write tables whose colnames and contents are UTF-8 encoded (#277)", { }) test_that("list the field of tables whose colnames are BIG5 encoded (#277)", { - skip_on_os("linux") - skip_on_os("mac") - skip_on_os("solaris") + skip_if_not(.Platform$OS.type == "windows") if (.Platform$OS.type == "windows") { withr::local_collate("cht") } else { @@ -133,9 +131,7 @@ test_that("append tables whose colnames are UTF-8 encoded (#277)", { }) test_that("write tables whose colnames or contents are BIG5 encoded (#277)", { - skip_on_os("linux") - skip_on_os("mac") - skip_on_os("solaris") + skip_if_not(.Platform$OS.type == "windows") .loc <- Sys.getlocale("LC_COLLATE") suppressWarnings(Sys.setlocale(locale = "cht"))