Skip to content

Commit

Permalink
sync/exercises: rename writeFile to writeTestsToml
Browse files Browse the repository at this point in the history
This helps to avoid confusion with the built-in `writeFile`.
  • Loading branch information
ee7 committed Jan 25, 2021
1 parent ff69ca4 commit 15cceb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sync/exercises.nim
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ proc toToml(exercise: Exercise): string =
result.add(&"\n# {testCase.description}")
result.add(&"\n\"{testCase.uuid}\" = {isIncluded}\n")

proc writeFile*(exercise: Exercise) =
proc writeTestsToml*(exercise: Exercise) =
let testsPath = testsFile(exercise)
createDir(testsPath.parentDir())

Expand Down
2 changes: 1 addition & 1 deletion src/sync/sync.nim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ proc sync(exercise: Exercise, mode: Mode): Exercise =

result.tests = initExerciseTests(included, excluded, missing)

writeFile(result)
writeTestsToml(result)

proc sync(exercises: seq[Exercise], mode: Mode): seq[Exercise] =
for exercise in exercises:
Expand Down

0 comments on commit 15cceb1

Please sign in to comment.