EastAgile / robber.py

BDD / TDD assertion library for Python
MIT License
8 stars 1 forks source link

Grammar mistake, lengthy line, multilevel diffirence #60

Closed catriuspham closed 7 years ago

catriuspham commented 7 years ago

Well, this is embarrassing.

  1. "A and B doesn't have the same length"
  2. When comparing 2 lists/dicts, this happens:
    A = {'a': 'Some super long text that makes your eyes bleed so bad that you want to die'}
    B = {'a': 'Some super long text that makes your eyes bleed so bad that you don't want to live anymore'}
    Expected A to equal B
    A['a'] = 'Some super long text that makes your eyes bleed so bad that you want to die' while B['a'] = ''Some super long text that makes your eyes bleed so bad that you don't want to live anymore'

    This would be better:

    A = {'a': 'Some super long text that makes your eyes bleed so bad that you want to die'}
    B = {'a': 'Some super long text that makes your eyes bleed so bad that you don't want to live anymore'}
    Expected A to equal B
    Diffs:
    A['a'] = 'Some super long text that makes your eyes bleed so bad that you want to die' 
    B['a'] = 'Some super long text that makes your eyes bleed so bad that you don't want to live anymore'
  3. A = {'a': {'a': 'abc'}}
    B = {'a': {'a': 'bcd'}}

    Currently, We only tell that the key 'a' of A, and B are different, but we don't know how exactly different it is, let's find a good way to deal with it.