rahu28 / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

assertEquals with expected empty object does not fail with actual null, undefined or empty string. #151

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. assertEquals({}, null);
2. assertEquals({}, undefined);
3. assertEquals({}, '');

What is the expected output? What do you see instead?

Assertions should fail. Instead they don't fail.

What version of the product are you using? On what operating system?

1.2.2 on Ubuntu 10.04

Please provide any additional information below.

The compare_ function should check types of expected and actual.

Original issue reported on code.google.com by andreas3...@gmail.com on 20 Oct 2010 at 7:15

GoogleCodeExporter commented 8 years ago
Also
compare_(20, null) == false
compare_(null, 20) == true

Original comment by olegelif...@gmail.com on 20 Jan 2011 at 6:53