Re: RFC: GLib testing framework

On Thu, 8 Nov 2007, Mikkel Kamstrup Erlandsen wrote:

On 07/11/2007, Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com> wrote:

How about token concatenation[1]?

i have to use that already for the current implementation,
see my recent header:;a=blob;f=glib/gtestframework.h;hb=617f2d3398e969bc2c38e1e6138a98cfaf91c7b9

If anybody agrees with me that we must have an IDE friendly syntax, or have
other reasons to believe that

  g_assert_cmpint (1, G_EQUALS, 2);

i don't quite see the benefit here. if there was a need to avoid the
operator notation however, i'd definitely prefer something like:

   g_assert_int_lt (1, 2);
   g_assert_int_le (1, 2);
   g_assert_int_eq (1, 2);
   g_assert_int_ne (1, 2);

for <, <=, ==, != respectively.

I shall gladly make it into a real implementation. Tim?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]