Skip to main content

All Questions

Tagged with
5 votes
1 answer
444 views

Buy-sell order board, as a TDD interview

I recently did a technical test for a well known Bank in 'The City' and as a result got no further. They were also kind enough not to give me any feedback. The test entailed a TDD approach to a simple ...
Chris Danson's user avatar
2 votes
2 answers
131 views

Sales Tax problem (new version)

I was told that this version is too simple, that need something more complex. I added Entity Framework. Here my code: ...
Alexan's user avatar
  • 371
6 votes
3 answers
93k views

Savings account class and test program

My code is complete. It runs properly and produces the correct output. I did calculations by hand to check and then ran the program and it gives me the same result. I just want a second opinion. Are ...
user21563966's user avatar
4 votes
2 answers
2k views

Credit card checking

I am practicing test-driven development in Python. Feedback about both the tests and the code is appreciated. I'm using luhn algorithm and regex to check credit card numbers for validity. Here are ...
mcgyver5's user avatar
  • 638
3 votes
1 answer
112 views

Unittests for CashFlow object

I'm just writing a small unittest to test for a hypothetical library and object, as a way of predefining the behavior, perhaps both as an acceptance test and for unittesting as well. As I'm writing ...
Aaron Hall's user avatar
  • 1,568
8 votes
1 answer
6k views

Hypothetical SalesTax challenge

I have a small solution to the following hypothetical problem: Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. Import duty ...
manwood's user avatar
  • 259