Handle string comparisons correctly with equals_

This commit is contained in:
ragaskar
2010-03-17 08:19:29 -07:00
parent dec92322f1
commit c85079e9d0
4 changed files with 32 additions and 1 deletions

View File

@@ -54,6 +54,9 @@ describe("jasmine.Matchers", function() {
expect((match(['a', 'b']).toEqual(['a', jasmine.undefined]))).toEqual(false);
expect((match(['a', 'b']).toEqual(['a', 'b', jasmine.undefined]))).toEqual(false);
expect((match(new String("cat")).toEqual("cat"))).toBe(true);
expect((match(new String("cat")).toNotEqual("cat"))).toBe(false);
});
it("toEqual to build an Expectation Result", function() {