Open florian1345 opened 11 months ago
Add a suite of assertions on collections to check whether a collection consists of a single element.
.to_single_element()
.is_single_element(<element>)
.is_not_single_element(<element>)
.is_single_element_matching(<predicate>)
There may be other useful assertions I did not think of.
Add a suite of assertions on collections to check whether a collection consists of a single element.
.to_single_element()
.is_single_element(<element>)
.is_not_single_element(<element>)
.is_single_element_matching(<predicate>)
There may be other useful assertions I did not think of.