Skip to content

Commit

Permalink
Merge pull request #4 from charlax/ca/add_imports
Browse files Browse the repository at this point in the history
Add imports to README
  • Loading branch information
toddsifleet committed Feb 25, 2015
2 parents 558e85b + 41c1de7 commit c546fe9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ strings:

::

from equals import any_string

any_string.containing('abc') == '123 abc 456'
any_string.starting_with('abc') == 'abcdef'
any_string.ending_with('abc') == '123abc'
Expand All @@ -50,6 +52,8 @@ numbers:

::

from equals import any_number

any_number.less_than(5) == 4
any_number.less_than_or_equal_to(5) == 5
any_number.greater_than(4) == 5
Expand All @@ -61,6 +65,8 @@ dictionaries:

::

from equals import any_dict

any_dict.containing(1, 2) == {1: 2, 2:3, 4:5}
any_dict.containing(foo='bar') == {
'foo': 'bar',
Expand All @@ -73,6 +79,8 @@ iterators:

::

from equals import any_iterable

any_iterable.containing(1, 2, 3) == [1, 2, 3, 4, 5]
any_iterable.containing_only(1, 2, 3) == [2, 3, 1]
any_iterable.not_containing(1, 2) == [3, 4]
Expand All @@ -82,6 +90,8 @@ objects:

::

from equals import anything

anything == None
anything == True
anything == {1: 1}
Expand Down Expand Up @@ -121,4 +131,4 @@ See LICENSE
:target: http://badge.fury.io/py/equals

.. |Coveralls| image:: https://img.shields.io/coveralls/toddsifleet/equals.svg
:target: https://coveralls.io/r/toddsifleet/equals
:target: https://coveralls.io/r/toddsifleet/equals

0 comments on commit c546fe9

Please sign in to comment.