|
1 | 1 |
|
2 |
| -## Copyright (C) 2012 - 2019 Dirk Eddelbuettel and Romain Francois |
| 2 | +## Copyright (C) 2012 - 2022 Dirk Eddelbuettel and Romain Francois |
3 | 3 | ##
|
4 | 4 | ## This file is part of Rcpp.
|
5 | 5 | ##
|
@@ -63,21 +63,23 @@ expect_equal( res, target )
|
63 | 63 | res <- test_ctor("abc")
|
64 | 64 | expect_identical(res, "abc")
|
65 | 65 |
|
66 |
| -# test.String.move.ctor <- function() { |
67 |
| -res <- test_move_ctor() |
68 |
| -expect_identical(res, c("", "test")) |
| 66 | +if (Rcpp:::capabilities()[["Full C++11 support"]]) { |
| 67 | + ## test.String.move.ctor <- function() { |
| 68 | + res <- test_move_ctor() |
| 69 | + expect_identical(res, c("", "test")) |
69 | 70 |
|
70 |
| -# test.String.move.std.string.ctor <- function() { |
71 |
| -res <- test_move_std_string_ctor() |
72 |
| -expect_identical(res, "test") |
| 71 | + ## test.String.move.std.string.ctor <- function() { |
| 72 | + res <- test_move_std_string_ctor() |
| 73 | + expect_identical(res, "test") |
73 | 74 |
|
74 |
| -# test.String.move.assignment <- function() { |
75 |
| -res <- test_move_assignment() |
76 |
| -expect_identical(res, c("", "test")) |
| 75 | + ## test.String.move.assignment <- function() { |
| 76 | + res <- test_move_assignment() |
| 77 | + expect_identical(res, c("", "test")) |
77 | 78 |
|
78 |
| -# test.String.move.std.string.assignment <- function() { |
79 |
| -res <- test_move_std_string_assignment() |
80 |
| -expect_identical(res, "test") |
| 79 | + ## test.String.move.std.string.assignment <- function() { |
| 80 | + res <- test_move_std_string_assignment() |
| 81 | + expect_identical(res, "test") |
| 82 | +} |
81 | 83 |
|
82 | 84 | # test.push.front <- function() {
|
83 | 85 | res <- test_push_front("def")
|
|
0 commit comments