accounting-pattern
accounting-pattern copied to clipboard
Implementation of Martin Fowler's http://martinfowler.com/apsupp/accounting.pdf accounting patterns article
Update the project to the latest java version and adopt the latest java idioms where appropriate
Related to #5 Add TypeScript version of the accounting pattern with tests. * **Customer.ts**: Implement `Customer` class with methods `getName`, `getEntry`, `post`, and `balance`. * **Entry.ts**: Implement `Entry` class with...
Move existing java code to a sub directory and add a typescript version with tests.
This causes failure: ``` AcceptanceTest.test:25 expected: but was: ``` in https://github.com/grahambrooks/accounting-pattern/blob/da5d7f4a642ed1686fb40781db8c984080bb6baf/src/test/java/accounting/patterns/AcceptanceTest.java#L25 and later https://github.com/grahambrooks/accounting-pattern/blob/da5d7f4a642ed1686fb40781db8c984080bb6baf/src/test/java/accounting/patterns/AcceptanceTest.java#L29 and then https://github.com/grahambrooks/accounting-pattern/blob/da5d7f4a642ed1686fb40781db8c984080bb6baf/src/test/java/accounting/patterns/AcceptanceTest.java#L32 This is _7.4 Mistake 58: Comparing BigDecimals with different scales_ in [100 Java...