-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply "i #284 Try Adding Debugging"
This reverts commit e55b6e2.
- Loading branch information
Showing
6 changed files
with
122 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,16 +20,30 @@ test_that("Calling parse_mbox with correct perceval and mbox path returns a data | |
tools_path <- file.path(tools_path) | ||
tool <- yaml::read_yaml(tools_path) | ||
perceval_path <- tool[["perceval"]] | ||
mbox_path <- example_mailing_list_two_threads(folder_path = "/tmp", | ||
folder_name="example_two_threads_mailing_list", | ||
file_name = "two_thread_mailing_list") | ||
|
||
# Debugging output | ||
print("Debugging parse_mbox:") | ||
print(paste("Tools path:", tools_path)) | ||
print(paste("Perceval path:", perceval_path)) | ||
|
||
mbox_path <- example_mailing_list_two_threads( | ||
folder_path = "/tmp", | ||
folder_name = "example_two_threads_mailing_list", | ||
file_name = "two_thread_mailing_list" | ||
) | ||
|
||
# Debugging output | ||
print(paste("Generated Mbox path:", mbox_path)) | ||
|
||
result <- parse_mbox(perceval_path, mbox_path) | ||
|
||
io_delete_folder(folder_path="/tmp", folder_name="example_two_threads_mailing_list") | ||
# Debugging output | ||
print("Result of parse_mbox:") | ||
print(head(result)) | ||
|
||
io_delete_folder(folder_path = "/tmp", folder_name = "example_two_threads_mailing_list") | ||
|
||
expect_equal(result[reply_from == "John Doe <[email protected]>"]$reply_subject, "Subject 1") | ||
expect_equal(result[reply_subject == "Re: Subject 1"]$reply_from, "Smithsonian Doe <[email protected]>") | ||
|
||
}) | ||
|