All Questions
Tagged with finance unit-testing
6
questions
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 ...
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:
...
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 ...
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 ...
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 ...
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 ...