From e5264a7ce59fc1d5dd56c36ec6243891f4e4f235 Mon Sep 17 00:00:00 2001 From: Greg Freedman Ellis Date: Thu, 26 Oct 2023 10:37:18 -0500 Subject: [PATCH] [185839488]: API no longer guards against dup var names --- tests/testthat/test-add-variable.R | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/testthat/test-add-variable.R b/tests/testthat/test-add-variable.R index 854d1c654..c2d5ef179 100644 --- a/tests/testthat/test-add-variable.R +++ b/tests/testthat/test-add-variable.R @@ -410,14 +410,6 @@ with_test_authentication({ expect_true(is.Numeric(ds$newvariable)) expect_identical(mean(ds$newvariable), 10.5) }) - test_that("adding variable with duplicate name fails", { - expect_error( - addVariables(ds, VariableDefinition(df$v5, - name = "New var4", alias = "newVar4" - )), - "Variable with name: New var4 already exists" - ) - }) test_that("Variable lengths must match, in an R way", { expect_error( ds[["not valid"]] <- 1:7,