Skip to content

Commit

Permalink
keep working on this. added plot to inspect.
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Dec 7, 2023
1 parent 83d7a04 commit 755a49e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testthat/test-match_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ test_that("os_similarity() handles input errors correctly", {
distance1 <- unlist(abs(unspectra2 - unspectra2)) |> mean(na.rm = T)
distance2 <- unlist(abs(unspectra2 - spectra2)) |> mean(na.rm = T)
distance3 <- unlist(abs(CAspectra2 - unspectra2)) |> mean(na.rm = T)

test <- abs(CAspectra2 - unspectra2)

ggplot() +
geom_line(aes(x = seq(0,1, by = 0.1), y = unspectra2[[30]]))

os_similarity(raman_hdpe, raman_hdpe) |>
expect_equal(1)

Expand Down

0 comments on commit 755a49e

Please sign in to comment.