STAT325-S24 / HistoryAmherstCollege

Text and analysis related to Williams S. Tyler's "History of Amherst College" (1873)
MIT License
0 stars 1 forks source link

create example of how "testthat" tests can be used #25

Closed nicholasjhorton closed 5 months ago

nicholasjhorton commented 5 months ago

See https://testthat.r-lib.org

This is needed for #2

nicholasjhorton commented 5 months ago

@arogers24 I see that https://github.com/STAT325-S24/HistoryAmherstCollege/blob/main/data-raw/case-01-check.txt has been added to the repo. Are there other files associated with this issue? Any updates?

arogers24 commented 5 months ago

@nicholasjhorton Yes there is another file called case-01-test.txt. The idea behind this was to have some Lorem Ipsum text with hyphens on the end of each line. The following line then starts with a word and then different cases for different forms of punctuation. This is our test file. Then there is a check file that has the expected output after we run our function. I'm still playing around with test_that() to get this to work.

nicholasjhorton commented 5 months ago

I suspect that the time to explore regression testing for the hypenation routines has passed. So I'm closing this issue.