func. test for 320
This commit is contained in:
		
							parent
							
								
									975e3274ea
								
							
						
					
					
						commit
						80e8caebe7
					
				
							
								
								
									
										2
									
								
								tests/journal/a.timeclock
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								tests/journal/a.timeclock
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | i 2016-01-01 12:00:00 a:aa | ||||||
|  | o 2016-01-01 16:00:00 | ||||||
							
								
								
									
										3
									
								
								tests/journal/b.timedot
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								tests/journal/b.timedot
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | 2016/1/1 | ||||||
|  | b.bb  .... | ||||||
|  | 
 | ||||||
| @ -1,4 +1,4 @@ | |||||||
| # nested includes in subdirectories | # 1. nested includes in subdirectories | ||||||
|  mkdir -p b/c/d ; printf '2010/1/1\n (D)  1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C)  1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B)  1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A)  1\n!include b/b.journal\n' >a.journal ; hledger -f a.journal print; rm -rf a.journal b |  mkdir -p b/c/d ; printf '2010/1/1\n (D)  1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C)  1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B)  1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A)  1\n!include b/b.journal\n' >a.journal ; hledger -f a.journal print; rm -rf a.journal b | ||||||
| >>> | >>> | ||||||
| 2010/01/01 | 2010/01/01 | ||||||
| @ -15,3 +15,23 @@ | |||||||
| 
 | 
 | ||||||
| >>>2 | >>>2 | ||||||
| >>>=0 | >>>=0 | ||||||
|  | 
 | ||||||
|  | # 2. including other formats | ||||||
|  | hledger -f - print | ||||||
|  | <<< | ||||||
|  | 2016/1/1 | ||||||
|  |    (x)  1 | ||||||
|  | 
 | ||||||
|  | include a.timeclock | ||||||
|  | include b.timedot | ||||||
|  | >>> | ||||||
|  | 2016/01/01 | ||||||
|  |     (x)          1.00 | ||||||
|  | 
 | ||||||
|  | 2016/01/01 * | ||||||
|  |     (b.bb)          1.00 | ||||||
|  | 
 | ||||||
|  | 2016/01/01 * 12:00-16:00 | ||||||
|  |     (a:aa)         4.00h | ||||||
|  | 
 | ||||||
|  | >>>=0 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user