Skip to content

Commit

Permalink
Test value instead of names
Browse files Browse the repository at this point in the history
  • Loading branch information
doccstat committed Apr 18, 2024
1 parent 52fc2ae commit cbe111e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vignettes/comparison-packages.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ testthat::expect_equal(cpm_result, c(299, 699), tolerance = 0.2)
```

```{r univariate-mean-change-segmented-testthat, include = FALSE}
testthat::expect_equal(segmented_result, c(298, 699), tolerance = 0.2)
testthat::expect_equivalent(segmented_result, c(298, 699), tolerance = 0.2)
```

```{r univariate-mean-change-mcp, eval = FALSE}
Expand Down Expand Up @@ -701,7 +701,7 @@ strucchange::breakpoints(y ~ . - 1, data = lm_data)$breakpoints
```

```{r linear-regression-segmented-testthat, include = FALSE}
testthat::expect_equal(segmented_result, c(233), tolerance = 0.2)
testthat::expect_equivalent(segmented_result, c(233), tolerance = 0.2)
```

# Logistic regression
Expand Down Expand Up @@ -786,7 +786,7 @@ testthat::expect_equal(CptNonPar_result, numeric(0), tolerance = 0.2)
```

```{r ar3-segmented-testthat, include = FALSE}
testthat::expect_equal(segmented_result, c(690), tolerance = 0.2)
testthat::expect_equivalent(segmented_result, c(690), tolerance = 0.2)
```

```{r ar3-mcp, eval = FALSE}
Expand Down

0 comments on commit cbe111e

Please sign in to comment.