Skip to content

Add baffling-birthdays #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

keiravillekode
Copy link
Contributor

No description provided.

@keiravillekode keiravillekode requested a review from ahans April 23, 2025 02:30
@keiravillekode keiravillekode force-pushed the baffling-birthdays branch 3 times, most recently from 02e8869 to ac9e7d8 Compare May 9, 2025 04:34
@ahans ahans added x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:type/content Work on content (e.g. exercises, concepts) labels May 24, 2025

To do this, you need to:

- Generate random birthdates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating random birthdays is not part of the exercise here. Do you think it would make sense to add an append to clarify that we don't do this here and maybe also give some reasoning?

FUNC_PROTO = """\
#include "vendor/unity.h"

#include <stddef.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not used, is it?


void test_multiple_birthdates_with_more_than_one_shared_birthday(void) {
TEST_IGNORE();
const char *birthdates[] = {"1966-07-29", "1977-02-12", "2001-12-25", "1980-07-29", "2019-02-12", NULL};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other tracks make this less about string parsing by using some Date structure that has year, month, and day fields. I think I would prefer that here as well, but if you prefer using the raw string format, fine as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants