Skip to content

equal not work properly when compare str with unicode #9

Description

@tiger-flying

The following code snippet demonstrates the issue(run on OSX):

from robber import expect
import json
abc=json.loads('{"a": "abc"}')

expect(abc['a']).to.equal('abc')

Run the above will generate the following exception message:

BadExpectation: u'Expected "abc" to be "abc"'

If I replace equal to eq(namely, expect(abc['a']).to.eq('abc')), then it works

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions