dev: fix doctests after "Error: " addition (#1436)
This commit is contained in:
		
							parent
							
								
									a1c9aa4114
								
							
						
					
					
						commit
						2f8f922256
					
				| @ -189,20 +189,20 @@ instance Show PeriodicTransaction where | |||||||
| -- <BLANKLINE> | -- <BLANKLINE> | ||||||
| -- | -- | ||||||
| -- >>> _ptgen "" | -- >>> _ptgen "" | ||||||
| -- *** Exception: failed to parse... | -- *** Exception: Error: failed to parse... | ||||||
| -- ... | -- ... | ||||||
| -- | -- | ||||||
| -- >>> _ptgen "weekly from 2017" | -- >>> _ptgen "weekly from 2017" | ||||||
| -- *** Exception: Unable to generate transactions according to "weekly from 2017" because 2017-01-01 is not a first day of the Week | -- *** Exception: Error: Unable to generate transactions according to "weekly from 2017" because 2017-01-01 is not a first day of the Week | ||||||
| -- | -- | ||||||
| -- >>> _ptgen "monthly from 2017/5/4" | -- >>> _ptgen "monthly from 2017/5/4" | ||||||
| -- *** Exception: Unable to generate transactions according to "monthly from 2017/5/4" because 2017-05-04 is not a first day of the Month | -- *** Exception: Error: Unable to generate transactions according to "monthly from 2017/5/4" because 2017-05-04 is not a first day of the Month | ||||||
| -- | -- | ||||||
| -- >>> _ptgen "every quarter from 2017/1/2" | -- >>> _ptgen "every quarter from 2017/1/2" | ||||||
| -- *** Exception: Unable to generate transactions according to "every quarter from 2017/1/2" because 2017-01-02 is not a first day of the Quarter | -- *** Exception: Error: Unable to generate transactions according to "every quarter from 2017/1/2" because 2017-01-02 is not a first day of the Quarter | ||||||
| -- | -- | ||||||
| -- >>> _ptgen "yearly from 2017/1/14" | -- >>> _ptgen "yearly from 2017/1/14" | ||||||
| -- *** Exception: Unable to generate transactions according to "yearly from 2017/1/14" because 2017-01-14 is not a first day of the Year | -- *** Exception: Error: Unable to generate transactions according to "yearly from 2017/1/14" because 2017-01-14 is not a first day of the Year | ||||||
| -- | -- | ||||||
| -- >>> let reportperiod="daily from 2018/01/03" in let (i,s) = parsePeriodExpr' nulldate reportperiod in runPeriodicTransaction (nullperiodictransaction{ptperiodexpr=reportperiod, ptspan=s, ptinterval=i, ptpostings=["a" `post` usd 1]}) (DateSpan (Just $ fromGregorian 2018 01 01) (Just $ fromGregorian 2018 01 03)) | -- >>> let reportperiod="daily from 2018/01/03" in let (i,s) = parsePeriodExpr' nulldate reportperiod in runPeriodicTransaction (nullperiodictransaction{ptperiodexpr=reportperiod, ptspan=s, ptinterval=i, ptpostings=["a" `post` usd 1]}) (DateSpan (Just $ fromGregorian 2018 01 01) (Just $ fromGregorian 2018 01 03)) | ||||||
| -- [] | -- [] | ||||||
|  | |||||||
| @ -801,7 +801,7 @@ makeHledgerClassyLenses ''ReportSpec | |||||||
| -- >>> _rsQuery $ set querystring ["assets"] defreportspec | -- >>> _rsQuery $ set querystring ["assets"] defreportspec | ||||||
| -- Acct (RegexpCI "assets") | -- Acct (RegexpCI "assets") | ||||||
| -- >>> _rsQuery $ set querystring ["(assets"] defreportspec | -- >>> _rsQuery $ set querystring ["(assets"] defreportspec | ||||||
| -- *** Exception: Updating ReportSpec failed: try using overEither instead of over or setEither instead of set | -- *** Exception: Error: Updating ReportSpec failed: try using overEither instead of over or setEither instead of set | ||||||
| -- >>> _rsQuery $ set period (MonthPeriod 2021 08) defreportspec | -- >>> _rsQuery $ set period (MonthPeriod 2021 08) defreportspec | ||||||
| -- Date DateSpan 2021-08 | -- Date DateSpan 2021-08 | ||||||
| class HasReportOptsNoUpdate a => HasReportOpts a where | class HasReportOptsNoUpdate a => HasReportOpts a where | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user