Fixed Key test by adding EXPECT to otherwise naked assert_equal statements

release/4.3a0
Alex Cunningham 2012-02-27 03:48:16 +00:00
parent b0e3373c7b
commit 6088d5cee8
1 changed files with 6 additions and 6 deletions

View File

@ -44,17 +44,17 @@ TEST(Key, KeySymbolEncoding) {
Key key = 0x6100000000000005; Key key = 0x6100000000000005;
string str = "a5"; string str = "a5";
LONGS_EQUAL(key, (Key)symbol); EXPECT_LONGS_EQUAL(key, (Key)symbol);
assert_equal(str, DefaultKeyFormatter(symbol)); EXPECT(assert_equal(str, DefaultKeyFormatter(symbol)));
assert_equal(symbol, Symbol(key)); EXPECT(assert_equal(symbol, Symbol(key)));
} else if(sizeof(Key) == 4) { } else if(sizeof(Key) == 4) {
Symbol symbol(0x61, 5); Symbol symbol(0x61, 5);
Key key = 0x61000005; Key key = 0x61000005;
string str = "a5"; string str = "a5";
LONGS_EQUAL(key, (Key)symbol); EXPECT_LONGS_EQUAL(key, (Key)symbol);
assert_equal(str, DefaultKeyFormatter(symbol)); EXPECT(assert_equal(str, DefaultKeyFormatter(symbol)));
assert_equal(symbol, Symbol(key)); EXPECT(assert_equal(symbol, Symbol(key)));
} }
} }