Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created April 15, 2016 10:11
Show Gist options
  • Save cipolleschi/cc772367ebf57883bce7decdaf201570 to your computer and use it in GitHub Desktop.
Save cipolleschi/cc772367ebf57883bce7decdaf201570 to your computer and use it in GitHub Desktop.
run program 'java -jar exportedJar.jar'
Test 1 PASSED (empty balance) [w=1.00]
Test 2 PASSED (sum of two expenses) [w=1.00]
Test 3 PASSED (not using external storage) [w=1.00]
Test 4 PASSED (no message) [w=1.00]
Test 5 PASSED (sender involved) [w=1.00]
Test 6 PASSED (don't register transaction when amount is 0) [w=0.50]
Test 7 PASSED (should handle decimals) [w=1.00]
Test 8 PASSED (should discard wrong handlers) [w=1.00]
Test 9 PASSED (discard ill-formatted messages) [w=1.00]
Test 10 PASSED (negative expenses) [w=0.50]
Test 11 PASSED (simple balance test) [w=1.00]
Test 12 PASSED (don't show 0 balances) [w=0.50]
Test 13 PASSED (handle decimal digits) [w=1.00]
Test 14 PASSED (test difference) [w=1.00]
Test 15 PASSED (multiple receivers, tricky event messages 1) [w=0.50]
Test 16 PASSED (multiple receivers, tricky event messages 2) [w=0.50]
Test 17 PASSED (multiple receivers, tricky event messages 3) [w=0.50]
Test 18 PASSED (default user action) [w=1.00]
Test 19 PASSED (should ignore command if an handler is present twice) [w=1.00]
Test 20 PASSED (should minimize transactions) [w=1.00]
Test 21 PASSED (should minimize both transactions and amount) [w=1.00]
Test 22 PASSED (empty history) [w=1.00]
Test 23 PASSED (history - expenses are ordered chronologically) [w=1.00]
Test 24 PASSED (history - syntax for expenses with messages) [w=1.00]
Test 25 PASSED (history - shows only the transactions involving the sender user) [w=1.00]
Test 26 PASSED (history - amounts are correctly rounded to the second decimal digit) [w=1.00]
Test 27 PASSED (uneven - normal input) [w=1.00]
Test 28 FAILED (uneven - fixed amount too high 1) [w=1.00]
TEST:
LQ: 100|MM*3+200,LQ
BALANCE
App crashed on command 'LQ: 100|MM*3+200,LQ'
Test 29 FAILED (uneven - fixed amount too high 2) [w=1.00]
TEST:
LQ: 100|MM*3+99,LQ+50
BALANCE
Command 'BALANCE' failed in 'check exact output'
Output given: MM owes LQ 62.25
Expected result:
Test 30 PASSED (uneven - percentage with float) [w=1.00]
Test 31 PASSED (uneven - zero multiplier) [w=1.00]
Test 32 PASSED (uneven - order does not matter) [w=1.00]
Test 33 PASSED (uneven - negative multiplier) [w=1.00]
Test 34 FAILED (uneven - giant multiplier) [w=1.00]
TEST:
100|AA*100000,BB
BALANCE
App crashed on command '100|AA*100000,BB'
Test 35 FAILED (group - done after creationg) [w=1.00]
TEST:
LQ: CREATE TEST
Command 'LQ: CREATE TEST' failed in 'check exact output'
Output given:
Expected result: Done
Test 36 PASSED (group - creation with invalid name) [w=1.00]
Test 37 FAILED (group - creation twice) [w=1.00]
TEST:
LQ: CREATE TEST
LQ: CREATE TEST
Command 'LQ: CREATE TEST' failed in 'check exact output'
Output given:
Expected result: Done
Test 38 FAILED (group - add user) [w=1.00]
TEST:
LQ: CREATE TEST
LQ: ADD LQ TEST
Command 'LQ: ADD LQ TEST' failed in 'check exact output'
Output given:
Expected result: Done
Test 39 PASSED (group - add user twice) [w=1.00]
Test 40 PASSED (group - add user with wrong handler) [w=1.00]
Test 41 FAILED (group - delete user) [w=1.00]
TEST:
LQ: CREATE TEST
LQ: ADD LQ TEST
LQ: DELETE LQ TEST
Command 'LQ: DELETE LQ TEST' failed in 'check exact output'
Output given:
Expected result: Done
Test 42 PASSED (group - delete user with wrong handler) [w=1.00]
Test 43 FAILED (group - delete user twice) [w=1.00]
TEST:
LQ: CREATE TEST
LQ: ADD LQ TEST
LQ: DELETE LQ TEST
LQ: DELETE LQ TEST
Command 'LQ: DELETE LQ TEST' failed in 'check exact output'
Output given:
Expected result: Done
Test 44 FAILED (group - simple usage) [w=1.00]
TEST:
LQ: CREATE SUSHILOVERS
LQ: ADD LQ SUSHILOVERS
LQ: ADD FP SUSHILOVERS
LQ: ADD MB SUSHILOVERS
LQ: 132|SUSHILOVERS,MD
LQ: BALANCE
Command 'LQ: CREATE SUSHILOVERS' failed in 'check exact output'
Output given:
Expected result: Done
Test 45 FAILED (group - simple usage with duplicate handler) [w=1.00]
TEST:
LQ: CREATE SUSHILOVERS
LQ: ADD LQ SUSHILOVERS
LQ: ADD FP SUSHILOVERS
LQ: ADD MB SUSHILOVERS
LQ: 132|SUSHILOVERS,FP
LQ: BALANCE
Command 'LQ: CREATE SUSHILOVERS' failed in 'check exact output'
Output given:
Expected result: Done
Test 46 FAILED (group - should not count people twice if they belong to two groups) [w=1.00]
TEST:
LQ: CREATE GROUPA
LQ: ADD LQ GROUPA
LQ: ADD FP GROUPA
LQ: CREATE GROUPB
LQ: ADD MP GROUPB
LQ: ADD FP GROUPB
LQ: 30|GROUPA,GROUPB
LQ: BALANCE
Command 'LQ: CREATE GROUPA' failed in 'check exact output'
Output given:
Expected result: Done
Test 47 FAILED (group - uneven split) [w=1.00]
TEST:
LQ: CREATE GROUPA
LQ: ADD LQ GROUPA
LQ: ADD FP GROUPA
LQ: CREATE GROUPB
LQ: ADD MP GROUPB
LQ: ADD MB GROUPB
LQ: 35|GROUPA*3+5,GROUPB*3
LQ: BALANCE
Command 'LQ: CREATE GROUPA' failed in 'check exact output'
Output given:
Expected result: Done
Test 48 FAILED (group - ignore when expense are added to a non existent group) [w=1.00]
TEST:
LQ: 35|GROUPA
LQ: BALANCE
App crashed on command 'LQ: 35|GROUPA'
Test 49 FAILED (group - accept floating point numbers as amount) [w=1.00]
TEST:
LQ: CREATE GROUPA
LQ: ADD AA GROUPA
LQ: ADD BB GROUPA
LQ: 26.74|GROUPA
LQ: BALANCE
App crashed on command 'LQ: 26.74|GROUPA'
Passed 35/49 tests
Score: 32.00 out of 46.00 (69.57%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment