dfe-analytical-services / dfeR

Common R tasks in the Department for Education (DfE)
https://dfe-analytical-services.github.io/dfeR/
GNU General Public License v3.0
9 stars 2 forks source link

add unit test to read_sql_script function #8

Closed adamrobinson361 closed 6 years ago

adamrobinson361 commented 6 years ago

Add unit test to the read_sql_script function to cover:

  1. Reading in an example file with all types of gsubbed text and confirm that clean
  2. Ensure that only character can be passed as parameter (add a check to the initial function).
  3. Decide if do this with an actual .sql file or make one in R.