Skip to content

Sprint 3 implement task reword#1279

Open
Poonam-raj wants to merge 8 commits intomainfrom
poonam-s3-tdd-err
Open

Sprint 3 implement task reword#1279
Poonam-raj wants to merge 8 commits intomainfrom
poonam-s3-tdd-err

Conversation

@Poonam-raj
Copy link
Contributor

@Poonam-raj Poonam-raj commented Mar 23, 2026

This change:

  • rewords how the task talks about building up tests. We're not emphasising TDD yet. Just need a quick check that the sentence reads clearly.
  • Adds a console.error to the catch to make use of catch, indicate successful error handling

@Poonam-raj Poonam-raj marked this pull request as draft March 23, 2026 15:10
@Poonam-raj Poonam-raj marked this pull request as ready for review March 23, 2026 15:21
Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Generally LGTM!

} catch (e) {}
console.error("Error was not thrown for invalid card 😢");
} catch (e) {
console.error("Error thrown for invalid card 🎉");
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
console.error("Error thrown for invalid card 🎉");
console.log("Error thrown for invalid card 🎉");

For each function, you also have a number of different cases you'll need to check for your function.

Write your assertions and build up your program case by case. Don't rush to a solution. The point of these assignments is to learn how to write assertions and build up a program step by step.
Write your implementation and then write your tests to cover the cases the function should fulfil.
Copy link
Member

Choose a reason for hiding this comment

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

Let's not actively enforce an order?

Suggested change
Write your implementation and then write your tests to cover the cases the function should fulfil.
Write your implementation and your tests to cover the cases the function should fulfil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants