Skip to content

Commit 685be0c

Browse files
committed
Oops, forgot to commit unit test changes.
1 parent 1ae871d commit 685be0c

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

inst/unitTests/cpp/Vector.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -792,38 +792,16 @@ String vec_print_numeric(NumericVector v) {
792792
return buf.str();
793793
}
794794

795-
// [[Rcpp::export]]
796-
String vec_print_numeric_member(NumericVector v) {
797-
std::ostringstream buf;
798-
v.print("", buf);
799-
return buf.str();
800-
}
801-
802795
// [[Rcpp::export]]
803796
String vec_print_character(CharacterVector v) {
804797
std::ostringstream buf;
805798
buf << v;
806799
return buf.str();
807800
}
808801

809-
// [[Rcpp::export]]
810-
String vec_print_character_member(CharacterVector v) {
811-
std::ostringstream buf;
812-
v.print("", buf);
813-
return buf.str();
814-
}
815-
816802
// [[Rcpp::export]]
817803
String vec_print_integer(IntegerVector v) {
818804
std::ostringstream buf;
819805
buf << v;
820806
return buf.str();
821807
}
822-
823-
// [[Rcpp::export]]
824-
String vec_print_integer_member(IntegerVector v) {
825-
std::ostringstream buf;
826-
v.print("", buf);
827-
return buf.str();
828-
}
829-

inst/unitTests/runit.Vector.R

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -697,34 +697,16 @@ if (.runThisTest) {
697697
checkEquals(s, "1.1 2.2 3.3 4.4")
698698
}
699699

700-
test.NumericVector.print.member <- function() {
701-
v <- c(1.1, 2.2, 3.3, 4.4)
702-
s <- vec_print_numeric_member(v)
703-
checkEquals(s, "1.1 2.2 3.3 4.4")
704-
}
705-
706700
test.IntegerVector.print <- function() {
707701
v <- c(1, 2, 3, 4)
708702
s <-vec_print_integer(v)
709703
checkEquals(s, "1 2 3 4")
710704
}
711705

712-
test.IntegerVector.print.member <- function() {
713-
v <- c(1, 2, 3, 4)
714-
s <- vec_print_integer_member(v)
715-
checkEquals(s, "1 2 3 4")
716-
}
717-
718706
test.CharacterVector.print <- function() {
719707
v <- c("a", "b", "c", "d")
720708
s <- vec_print_character(v)
721709
checkEquals(s, '"a" "b" "c" "d"')
722710
}
723-
724-
test.CharacterVector.print.member <- function() {
725-
v <- c("a", "b", "c", "d")
726-
s <- vec_print_character_member(v)
727-
checkEquals(s, '"a" "b" "c" "d"')
728-
}
729711
}
730712

0 commit comments

Comments
 (0)