Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Mar 4, 2020
1 parent 0458f10 commit 68110fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ setSimulationPath <- function(path, simulation = NULL) {

if (length(to) == 0) return(NULL)

data.frame(link = paste(f, "-", to), from = f, to = to)
data.frame(link = paste(f, "-", to), from = f, to = to, stringsAsFactors = TRUE)
})
linksDef <- data.table(linksDef)

Expand Down Expand Up @@ -493,7 +493,7 @@ setSimulationPath <- function(path, simulation = NULL) {
}
if (length(areas) == 0) return(NULL)

data.frame(district = tolower(n), area = tolower(areas))
data.frame(district = tolower(n), area = tolower(areas), stringsAsFactors = TRUE)
})
data.table(res)
}
Expand Down
3 changes: 2 additions & 1 deletion revdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
|collate |French_France.1252 |
|ctype |French_France.1252 |
|tz |Europe/Berlin |
|date |2020-02-21 |
|date |2020-03-03 |

# Dependencies

|package |old |new |<U+0394> |
|:-----------|:-----|:-----|:--|
|antaresRead |2.2.4 |2.2.5 |* |
|rlang |NA |0.4.5 |* |

# Revdeps

1 change: 1 addition & 0 deletions tests/testthat/test-getStartDate.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sapply(studyPathS, function(studyPath){
# Correction of start date #####################################################

describe(".getStartDate", {
library(lubridate)
mNames <- c("january", "february", "march", "april", "may", "june", "july","august",
"september", "october", "november", "december")
dNames <- c("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday",
Expand Down

0 comments on commit 68110fa

Please sign in to comment.