git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC][Outreachy] Seeking Git Community Feedback on My Application

From
Isoken Ibizugbe <isokenjune@gmail.com>
Date
Oct 28, 2023, 14:07 UTC
Message-ID
<CAJHH8bHCfx3vknPCGATbLZeTA7hYrVVtnYqfE1avWkiL1PvU1g@mail.gmail.com>
In-Reply-To
<CAP8UFD1+aWGymjssk5CotPjEmhu5sMcTy-b7eJc4fw-UA41Qig@mail.gmail.com>

On Sat, Oct 28, 2023 at 1:38 PM Christian Couder <christian.couder@gmail.com> wrote:

Show 24 quoted lines
>
> On Sat, Oct 28, 2023 at 12:41 PM Isoken Ibizugbe <isokenjune@gmail.com> wrote:
> >
> > On Sat, Oct 28, 2023 at 9:07 AM Christian Couder
> > <christian.couder@gmail.com> wrote:
>
> > > > #define DIGIT "0123456789"
> > > >
> > > > static void t_digit_type(void)
> > > > {
> > > >     int i;
> > > >     const char *digits = DIGIT;
> > > >     for (i = 0; digits[i]; i++)
> > > >    {
> > > >          check_int(isdigit(digits[i]), ==, 0);
> > > >    }
> > >
> > > This tests that isdigit() returns 0 for each of the characters in
> > > "0123456789", but first I think isdigit() should return 1, not 0 for
> > > those characters.
> >
> > yes, that is true. should I send a re-roll?
>
> Yes, please.

#include "test-lib.h" #include "ctype.h"

static void t_digit_type(void)
{
    int i;
for (i = 0; i < 256; i++)
        {
            if (i < '0' || i > '9')
                check_int(isdigit(i), ==, 0);
            else
                check_int(isdigit(i), ==, 1);
        }
}
int main(void)
{
    TEST(t_digit_type(), "Character is a digit");
    return test_done();
}
Previous: Christian CouderNext: Phillip Wood
Message 8 of 9 in “[RFC][Outreachy] Seeking Git Community Feedback on My Application”
  1. Isoken IbizugbeOct 19, 2023
  2. Isoken IbizugbeOct 20, 2023
  3. Christian CouderOct 23, 2023
  4. Isoken IbizugbeOct 25, 2023
  5. Christian CouderOct 28, 2023
  6. Isoken IbizugbeOct 28, 2023
  7. Christian CouderOct 28, 2023
  8. Isoken IbizugbeOct 28, 2023
  9. Phillip WoodOct 29, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.