Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Expecto/Flip.Expect.fs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ let inline isAscending message subject = Expecto.Expect.isAscending subject mess
let inline isDescending message subject = Expecto.Expect.isDescending subject message

/// Expect the string `subject` to contain `substring` as part of itself.
/// If it does not, then fail with `format` and `subject` and `substring`
/// If it does not, then fail with `message` and `subject` and `substring`
/// as part of the error message.
let inline stringContains message substring subject = Expecto.Expect.stringContains subject substring message

Expand All @@ -188,10 +188,14 @@ let inline stringStarts message prefix subject = Expecto.Expect.stringStarts sub
let inline stringEnds message suffix subject = Expecto.Expect.stringEnds subject suffix message

/// Expect the string `subject` to have length equals `length`. If it does not
/// then fail with `format` as an error message together with a description
/// then fail with `message` as an error message together with a description
/// of `subject` and `length`.
let inline stringHasLength message length subject = Expecto.Expect.stringHasLength subject length message

/// Expect length of a list/array/seq to be exactly length. Print out the whole seq
/// on failure so it's easier to debug.
let inline hasLength message expectedLength seq = Expecto.Expect.hasLength seq expectedLength message

/// Expect the streams to byte-wise equal.
let inline streamsEqual message s2 s1 = Expecto.Expect.streamsEqual s1 s2 message

Expand Down