View Source Expect.Matchers (Expect v0.1.5)

Summary

Functions

Verifies that expected is an empty list, map, or tuple

Verifies that expected is nil

Verifies that expected is a falsy value -- either nil or false

Verifies that the provided value is in the list expected

Verifies that expected is equal to value

Verifies that expected is either a List or String with the given length

Matches expected against the provided regular expression using Regex.match?

Functions

Verifies that expected is an empty list, map, or tuple

Verifies that expected is nil

Verifies that expected is a falsy value -- either nil or false

Link to this function

to_contain(expected, value)

View Source

Verifies that the provided value is in the list expected

Link to this function

to_equal(expected, value, opts \\ [])

View Source

Verifies that expected is equal to value

Link to this function

to_have_length(expected, expected_length)

View Source

Verifies that expected is either a List or String with the given length

Link to this function

to_match_regex(expected, regex)

View Source

Matches expected against the provided regular expression using Regex.match?