mirror of https://github.com/djcb/mu.git
message: fix 'changed' test
This commit is contained in:
parent
f16224c33a
commit
30c46fba61
|
@ -99,8 +99,8 @@ goto * instructions[pOp->opcode];
|
|||
g_assert_cmpuint(message->size(),==,::strlen(test_message_1));
|
||||
|
||||
/* text-based message use time({}) as their changed-time */
|
||||
g_assert_cmpuint(message->changed() - ::time({}), >=, 0);
|
||||
g_assert_cmpuint(message->changed() - ::time({}), <=, 2);
|
||||
g_assert_cmpuint(::time({}) - message->changed(), >=, 0);
|
||||
g_assert_cmpuint(::time({}) - message->changed(), <=, 2);
|
||||
|
||||
g_assert_true(message->references().empty());
|
||||
|
||||
|
@ -206,8 +206,8 @@ World!
|
|||
g_assert_cmpuint(message->size(),==,::strlen(msg_text));
|
||||
|
||||
/* text-based message use time({}) as their changed-time */
|
||||
g_assert_cmpuint(message->changed() - ::time({}), >=, 0);
|
||||
g_assert_cmpuint(message->changed() - ::time({}), <=, 2);
|
||||
g_assert_cmpuint(::time({}) - message->changed(), >=, 0);
|
||||
g_assert_cmpuint(::time({}) - message->changed(), <=, 2);
|
||||
|
||||
assert_equal(message->subject(), "ättächmeñts");
|
||||
|
||||
|
|
Loading…
Reference in New Issue