grappa-py / grappa

Behavior-oriented, expressive, human-friendly Python assertion library for the 21st century
http://grappa.rtfd.io
MIT License
134 stars 15 forks source link

"Type" is always string in error report #44

Closed matiboy closed 6 years ago

matiboy commented 6 years ago

Reproduce:

from grappa import should
42  | should.equal(99)

Expected behavior: Console should output

...
What we expected
    a value that is equal to "99"

What we got instead
    an value of type "int" with data "42"
...

Current behavior

...
What we expected
    a value that is equal to "99"

What we got instead
    an value of type "str" with data "42"
...

Regardless of value being tested, always shows "str" in "What we got instead" message