Skip to content

Added 3 files: test-export_cdt.R, test-export_cdt_daily.R and test-ex…#78

Open
HawardKetoyoMsatsi wants to merge 9 commits intoIDEMSInternational:mainfrom
HawardKetoyoMsatsi:test-export_cdt
Open

Added 3 files: test-export_cdt.R, test-export_cdt_daily.R and test-ex…#78
HawardKetoyoMsatsi wants to merge 9 commits intoIDEMSInternational:mainfrom
HawardKetoyoMsatsi:test-export_cdt

Conversation

@HawardKetoyoMsatsi
Copy link
Copy Markdown
Contributor

This is ready for review.
Three files are created here: test-export_cdt.R, test-export_cdt_daily.R and test-export_cdt_dekad.R
Files export_cdt.R, export_cdt_daily.R and export_cdt_dekad.R doesnt recognise "element" in the input (file_path = paste0("CDT-", element, ".csv") (this should be fixed for the tests to run)
The files test that the

  1. functions give the correct output.
  2. functions give an error whenever mandatory inputs are missing.

…port_cdt_dekad.R

Three files are created here: test-export_cdt.R, test-export_cdt_daily.R and test-export_cdt_dekad.R
Files  export_cdt.R, export_cdt_daily.R and export_cdt_dekad.R doesnt recognise "element" in the input (file_path = paste0("CDT-", element, ".csv")
(this should be fixed for the tests to run)
The files test that the
1. functions give the correct output.
2. functions give an error whenever mandatory inputs are missing.
Updated read_csv function of readr package.
Comment thread tests/testthat/test-export_cdt.R
Comment thread tests/testthat/test-export_cdt.R
HawardKetoyoMsatsi and others added 5 commits April 25, 2022 14:39
…ort_cdtdekad.R

Updated Functions test-esport_cdt.R, test-esport_cdt.dailyR, test-esport_cdtdekad.R
Tests added include:-
1. the function returns an error when numbers outside valid ranges are supplied
2. the function does not return an error when an empty dataframe is supplied
3. the function returns an error when an data frame with incorrectly formatted data  is supplied
@lilyclements
Copy link
Copy Markdown
Collaborator

@HawardKetoyoMsatsi the problem in the missing element is now fixed

Added readr package in the DESCRIPTION file
@lloyddewit lloyddewit mentioned this pull request May 12, 2022
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants