Skip to content

Commit 58f571f

Browse files
romainfrancoisjimhester
authored andcommitted
testing writable::logicals::proxy::operator=(bool)
1 parent 2123217 commit 58f571f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp11test/src/test-logicals.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ context("logicals-C++") {
126126

127127
UNPROTECT(1);
128128
}
129+
test_that("writable::logicals::proxy::operator=(bool)") {
130+
cpp11::writable::logicals y(2);
131+
132+
y[0] = false;
133+
y[1] = true;
134+
expect_true(y[0] == TRUE);
135+
expect_true(y[1] == FALSE);
136+
}
129137
test_that("is_na(Rboolean)") {
130138
Rboolean x = TRUE;
131139
expect_true(!cpp11::is_na(x));

0 commit comments

Comments
 (0)