Skip to content

Commit

Permalink
updated derive_basic_rap_scores test
Browse files Browse the repository at this point in the history
  • Loading branch information
CHCRowley committed Jan 4, 2024
1 parent cbfc6f5 commit 456cad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-derive_basic_rap_scores.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dummy_data <- data.frame(code_freq = c("Never", rep("Sometimes", 4)),
prac_open_source_own = c(NA, "All the time", "Regularly", "Sometimes", "Rarely"),
prac_version_control = c(NA, "Never" ,"All the time", "Regularly", "Sometimes"),
prac_review = c(NA, "Rarely", "Never", "All the time", "Regularly"),
prac_development_QA = c(NA, "Sometimes", "Rarely", "Never", "All the time"),
prac_proportionate_QA = c(NA, "Sometimes", "Rarely", "Never", "All the time"),
doc_readme = c(NA, "Regularly", "Sometimes", "Rarely", "Never"),
doc_comments = c(NA, "All the time", "Regularly", "Sometimes", "Rarely"))

Expand All @@ -24,14 +24,14 @@ test_that("derive_basic_rap_scores output is as expected", {
prac_open_source_own = c(NA, "All the time", "Regularly", "Sometimes", "Rarely"),
prac_version_control = c(NA, "Never" ,"All the time", "Regularly", "Sometimes"),
prac_review = c(NA, "Rarely", "Never", "All the time", "Regularly"),
prac_development_QA = c(NA, "Sometimes", "Rarely", "Never", "All the time"),
prac_proportionate_QA = c(NA, "Sometimes", "Rarely", "Never", "All the time"),
doc_readme = c(NA, "Regularly", "Sometimes", "Rarely", "Never"),
doc_comments = c(NA, "All the time", "Regularly", "Sometimes", "Rarely"),
use_open_source_score = c(NA, 1, 0, 0, 0),
open_code_score = c(NA, 1, 1, 0, 0),
version_control_score = c(NA, 0, 1, 1, 0),
peer_review_score = c(NA, 0, 0, 1, 1),
development_QA_score = c(NA, 0, 0, 0, 1),
proportionate_QA_score = c(NA, 0, 0, 0, 1),
doc_score = c(NA, 1, 0, 0, 0),
basic_rap_score = c(NA, 3, 2, 2, 2))

Expand Down

0 comments on commit 456cad1

Please sign in to comment.