UMM-0.3.0: test/test2.dat
todo 2009-1-1 Test 2: more counting in different ways
todo 2009-1-1 This exercises "buy", "sell", and "exch" transactions.
todo 2009-1-1 Run "umm test1.dat bal 2009-m-d" for different values of m and d.
todo 2009-1-1 You should see N units of J in account 1, balanced by -N $,
todo 2009-1-1 for each day of January 2009; then in February and the first
todo 2009-1-1 couple of days of March, the J get exchanged for $ again,
todo 2009-1-1 and the positive balance of J and negative balance of $ should
todo 2009-1-1 decrease again, until the account is empty.
todo 2009-1-1 In account 2, units of J are bought in exchange for $, but
todo 2009-1-1 automatically throughout the year: on the Nth day of the year,
todo 2009-1-1 there should be N units of J balanced by -N $.
todo 2009-1-1 Account 3 is the same as account 2, except that each J is
todo 2009-1-1 exchanged for an S on the same day it is bought; thus
todo 2009-1-1 there should be N units of S balanced by -N $. In account 3
todo 2009-1-1 there will be two transactions each day, one showing the
todo 2009-1-1 purchase of 1 unit of J and one showing the exchange of that
todo 2009-1-1 unit of J for 1 unit of S.
ccs $
ccs J "junk"
ccs S "s...tuff"
account count1 "manually count $ & J"
account count2 "automatically count $ & J"
account count3 "automatically count $ & S"
# manually accumulate junk
buy 2009-1-1 count1 1 J 1
buy 2009-1-2 count1 1 J 1
buy 2009-1-3 count1 1 J 1
buy 2009-1-4 count1 1 J 1
buy 2009-1-5 count1 1 J 1
buy 2009-1-6 count1 1 J 1
buy 2009-1-7 count1 1 J 1
buy 2009-1-8 count1 1 J 1
buy 2009-1-9 count1 1 J 1
buy 2009-1-10 count1 1 J 1
buy 2009-1-11 count1 1 J 1
buy 2009-1-12 count1 1 J 1
buy 2009-1-13 count1 1 J 1
buy 2009-1-14 count1 1 J 1
buy 2009-1-15 count1 1 J 1
buy 2009-1-16 count1 1 J 1
buy 2009-1-17 count1 1 J 1
buy 2009-1-18 count1 1 J 1
buy 2009-1-19 count1 1 J 1
buy 2009-1-20 count1 1 J 1
buy 2009-1-21 count1 1 J 1
buy 2009-1-22 count1 1 J 1
buy 2009-1-23 count1 1 J 1
buy 2009-1-24 count1 1 J 1
buy 2009-1-25 count1 1 J 1
buy 2009-1-26 count1 1 J 1
buy 2009-1-27 count1 1 J 1
buy 2009-1-28 count1 1 J 1
buy 2009-1-29 count1 1 J 1
buy 2009-1-30 count1 1 J 1
buy 2009-1-31 count1 1 J 1
sell 2009-2-1 count1 1 J 1
sell 2009-2-2 count1 1 J 1
sell 2009-2-3 count1 1 J 1
sell 2009-2-4 count1 1 J 1
sell 2009-2-5 count1 1 J 1
sell 2009-2-6 count1 1 J 1
sell 2009-2-7 count1 1 J 1
sell 2009-2-8 count1 1 J 1
sell 2009-2-9 count1 1 J 1
sell 2009-2-10 count1 1 J 1
sell 2009-2-11 count1 1 J 1
sell 2009-2-12 count1 1 J 1
sell 2009-2-13 count1 1 J 1
sell 2009-2-14 count1 1 J 1
sell 2009-2-15 count1 1 J 1
sell 2009-2-16 count1 1 J 1
sell 2009-2-17 count1 1 J 1
sell 2009-2-18 count1 1 J 1
sell 2009-2-19 count1 1 J 1
sell 2009-2-20 count1 1 J 1
sell 2009-2-21 count1 1 J 1
sell 2009-2-22 count1 1 J 1
sell 2009-2-23 count1 1 J 1
sell 2009-2-24 count1 1 J 1
sell 2009-2-25 count1 1 J 1
sell 2009-2-26 count1 1 J 1
sell 2009-2-27 count1 1 J 1
sell 2009-2-28 count1 1 J 1
sell 2009-3-1 count1 1 J 1
sell 2009-3-2 count1 1 J 1
sell 2009-3-3 count1 1 J 1
# automatically accumulate junk
recurring daily until 2009-12-31 buy 2009-1-1 count2 1 J 1
# automatically accumulate junk, but exchange it for s...tuff
recurring daily until 2009-12-31 buy 2009-1-1 count3 1 J 1
recurring daily until 2009-12-31 exch 2009-1-1 count3 1 S 1 J