equal
deleted
inserted
replaced
48 //Test macros and functions |
48 //Test macros and functions |
49 void Check(TInt aValue, TInt aLine) |
49 void Check(TInt aValue, TInt aLine) |
50 { |
50 { |
51 if(!aValue) |
51 if(!aValue) |
52 { |
52 { |
53 RDebug::Print(_L("*** Line %d\r\n"), aLine); |
53 TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine); |
54 TheTest(EFalse, aLine); |
54 TheTest(EFalse, aLine); |
55 } |
55 } |
56 } |
56 } |
57 void Check(TInt aValue, TInt aExpected, TInt aLine) |
57 void Check(TInt aValue, TInt aExpected, TInt aLine) |
58 { |
58 { |
59 if(aValue != aExpected) |
59 if(aValue != aExpected) |
60 { |
60 { |
61 RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
61 TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
62 TheTest(EFalse, aLine); |
62 TheTest(EFalse, aLine); |
63 } |
63 } |
64 } |
64 } |
65 |
65 |
66 #define TEST(arg) ::Check((arg), __LINE__) |
66 #define TEST(arg) ::Check((arg), __LINE__) |