Skip to content

Commit dc138b5

Browse files
committed
fix: escaped dollar signs in perf tests
1 parent 5176a50 commit dc138b5

8 files changed

Lines changed: 8 additions & 8 deletions

tests/testthat/test-perf-ds.c.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.c("D\$LAB_TSC", "D\$LAB_TRIG", newobj="c.newobj")
21+
ds.c("D$LAB_TSC", "D$LAB_TRIG", newobj="c.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.cbind.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.cbind(x=c("D\$LAB_TSC", "D\$LAB_TRIG"), newobj="cbind.newobj")
21+
ds.cbind(x=c("D$LAB_TSC", "D$LAB_TRIG"), newobj="cbind.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.dataFrame.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.dataFrame(x=c("D\$LAB_TSC", "D\$LAB_TRIG"), newobj="df.newobj")
21+
ds.dataFrame(x=c("D$LAB_TSC", "D$LAB_TRIG"), newobj="df.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.dataFrameSort.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.dataFrameSort(df.name="D", sort.key.name="D\$LAB_TSC", newobj="sorted.newobj")
21+
ds.dataFrameSort(df.name="D", sort.key.name="D$LAB_TSC", newobj="sorted.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.dataFrameSubset.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.dataFrameSubset(df.name="D", V1.name="D\$LAB_TSC", V2.name="D\$LAB_TRIG", Boolean.operator=">=", newobj="subset.newobj")
21+
ds.dataFrameSubset(df.name="D", V1.name="D$LAB_TSC", V2.name="D$LAB_TRIG", Boolean.operator=">=", newobj="subset.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.list.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.list("D\$LAB_TSC", newobj="list.newobj")
21+
ds.list("D$LAB_TSC", newobj="list.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.recodeValues.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.recodeValues(var.name="D\$LAB_TSC", values2replace.vector=0, new.values.vector=NA, newobj="recode.newobj")
21+
ds.recodeValues(var.name="D$LAB_TSC", values2replace.vector=0, new.values.vector=NA, newobj="recode.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

tests/testthat/test-perf-ds.replaceNA.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("performance", {
1818
.current.time <- .start.time
1919

2020
while (difftime(.current.time, .start.time, units = "secs")[[1]] < .durationSec) {
21-
ds.replaceNA(x="D\$LAB_TSC", forNA=0, newobj="replace.newobj")
21+
ds.replaceNA(x="D$LAB_TSC", forNA=0, newobj="replace.newobj")
2222

2323
.count <- .count + 1
2424
.current.time <- Sys.time()

0 commit comments

Comments
 (0)