Skip to content

Commit f321427

Browse files
authored
Merge pull request #136 from isidroas/doc
doc minor fixes
2 parents aa8beba + 0cc80d8 commit f321427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/basic/tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ contract_for_index_of = deal.chain(
9696
),
9797
# element at this position is the first match
9898
deal.ensure(
99-
lambda items, item, result: not any(el == item for el in items[:result]),
99+
lambda items, item, result: item not in items[:result],
100100
message='not the first match',
101101
),
102102
# LookupError will be raised if no elements found
@@ -123,7 +123,7 @@ And tests, after all, the easiest part. Let's make it a little bit interesting a
123123
```python
124124
# test and make examples
125125
@deal.cases(index_of, count=1000)
126-
def test_div(case):
126+
def test_index_of(case):
127127
# run test case
128128
result = case()
129129
if result is not NoReturn:

0 commit comments

Comments
 (0)