2007/02/02 RD VMMXX
    Assets:Investments:Vanguard:VMMXX  0.350 VMMXX @ $1.00
    Income:Dividends:Vanguard:VMMXX        $-0.35

$ hledger -f- check

#test bal --prepend-format "%(account_base)"
#VMMXX         0.350 VMMXX  Assets:Investments:Vanguard:VMMXX
#VMMXX              $-0.35  Income:Dividends:Vanguard:VMMXX
#--------------------
#              $-0.35
#         0.350 VMMXX
#end test
#
#test reg --prepend-format "%(account_base)"
#VMMXX07-Feb-02 RD VMMXX              As:Inves:Vanguar:VMMXX  0.350 VMMXX  0.350 VMMXX
#VMMXX                                In:Divid:Vanguar:VMMXX       $-0.35       $-0.35
#                                                                     0.350 VMMXX
#end test
#
#test accounts --prepend-format "%(account_base) "
#VMMXX Assets:Investments:Vanguard:VMMXX
#VMMXX Income:Dividends:Vanguard:VMMXX
#end test
#