unit tests

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-12 17:10:48 +01:00
1 parent 68abb00c59
commit 45a9697c84
23 files changed
+438 -406

No files matched your search

+2 -2
View File
@@ -246,8 +246,8 @@ translate_into_language <- function(from,
}
lapply(
# starting from last row, since more general translations are on top, such as 'Group'
rev(seq_len(nrow(df_trans))),
# starting with longest pattern, since more general translations are shorter, such as 'Group'
order(nchar(df_trans$pattern), decreasing = TRUE),
function(i) {
from_unique_translated <<- gsub(
pattern = df_trans$pattern[i],