Skip to content

Commit

Permalink
Merge pull request #7 from mikemahoney218/main
Browse files Browse the repository at this point in the history
Stop checking attributes (fixes #6)
  • Loading branch information
chris-prener authored Jan 7, 2024
2 parents 6352e52 + 0ab65f7 commit bb1d7db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test_4_qm_create.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ resultV1 <- qm_create(ref = test_sf, key = "TRACTCE", value = test_cluster, rid
resultV2 <- qm_create(ref = test_sf, key = TRACTCE, value = test_cluster, rid = 1, cid = 1, category = "positive")

test_that("returns TRUE - test result 1 matches test_tbl2", {
expect_equal(resultV1, test_tbl2)
expect_equal(resultV1, test_tbl2, check.attributes = FALSE)
})

test_that("returns TRUE - test result 2 matches test_tbl2", {
expect_equal(resultV2, test_tbl2)
expect_equal(resultV2, test_tbl2, check.attributes = FALSE)
})

resultV3 <- qm_create(ref = test_sf, key = "TRACTCE", value = test_cluster, rid = 1, cid = 1, category = "positive", NAME)

test_that("returns TRUE - test result 3 matches test_tbl3", {
expect_equal(resultV3, test_tbl3)
expect_equal(resultV3, test_tbl3, check.attributes = FALSE)
})

objV1 <- qm_is_cluster(resultV1)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_5_qm_combine.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ expect_error(qm_combine(cluster4a_obj, cluster5_obj, cluster6_obj),
clustersV1 <- qm_combine(cluster1_obj, cluster2_obj, cluster3_obj)

test_that("returns TRUE - test result 1 matches test_tbl2", {
expect_equal(clustersV1, test_obj2)
expect_equal(clustersV1, test_obj2, check.attributes = FALSE)
})

clustersV2 <- qm_combine(cluster4b_obj, cluster5_obj, cluster6_obj)

test_that("returns TRUE - test result 2 matches test_tbl3", {
expect_equal(clustersV2, test_obj3)
expect_equal(clustersV2, test_obj3, check.attributes = FALSE)
})

objV1 <- qm_is_cluster(clustersV1)
Expand Down

0 comments on commit bb1d7db

Please sign in to comment.