Browse Source

Wrote unit test for RequestCleanTextFromFile -- console-waterworks.

It is failing at the moment because of an OBOB.
master
Craig Oates 6 years ago
parent
commit
1dfe88def5
  1. 8
      TestCentre/UnitTests.fs

8
TestCentre/UnitTests.fs

@ -152,6 +152,14 @@
|> countSentences
Assert.Equal(desiredSentencesCount, result)
[<Fact>]
let ``RequestCleanTextFromFile returns intended numbe of sentences when using console-waterworks-announcement`` () =
let desiredSentencesCount = (ValidSentencesInput())
let result =
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) desiredSentencesCount ConsoleWaterworks
|> Async.RunSynchronously
|> countSentences
Assert.Equal(desiredSentencesCount, result)
// YOU ARE HERE...
// - ADD TESTS FOR "CLEANING" FUNCTIONS

Loading…
Cancel
Save