Browse Source

Wrote unit test for RequestCleanTextFromFile -- desktop-clock-info.

Note: The console-waterworks unit test from previous commit seems to be passing. I haven't touched it since the last commit so... odd... very odd.
master
Craig Oates 6 years ago
parent
commit
18d373a474
  1. 9
      TestCentre/UnitTests.fs

9
TestCentre/UnitTests.fs

@ -160,6 +160,15 @@
|> Async.RunSynchronously
|> countSentences
Assert.Equal(desiredSentencesCount, result)
[<Fact>]
let ``RequestCleanTextFromFile returns intended numbe of sentences when using desktop-clock-info`` () =
let desiredSentencesCount = (ValidSentencesInput())
let result =
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) desiredSentencesCount DesktopClock
|> Async.RunSynchronously
|> countSentences
Assert.Equal(desiredSentencesCount, result)
// YOU ARE HERE...
// - ADD TESTS FOR "CLEANING" FUNCTIONS

Loading…
Cancel
Save