FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp11/cpp11test/src/test-string.cpp at main · josh28x/cpp11 · GitHub
josh28x
cpp11
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp11
/
cpp11test
/
src
/
test-string.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 248 Bytes
Breadcrumbs
cpp11
/
cpp11test
/
src
/
test-string.cpp
Copy path
File metadata and controls
13 lines (10 loc) · 248 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
#
include
"
cpp11/strings.hpp
"
#
include
<
testthat.h
>
context
(
"
string-C++
"
) {
test_that
(
"
is_na(string)
"
) {
cpp11::r_string
x
(
"
foo
"
);
expect_true
(!
cpp11::is_na
(x));
cpp11::r_string
y
(
NA_STRING
);
expect_true
(
cpp11::is_na
(y));
}
}
Back
|
FazBrowse Home
|
New Git URL