mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-04 02:23:26 -05:00 
			
		
		
		
	testing: Use a different date-creation format for one Lua accounts test
This commit is contained in:
		@@ -41,7 +41,7 @@ func TestLuaAccounts(t *testing.T) {
 | 
			
		||||
			{"typename", fmt.Sprintf("return get_accounts()[%d].typename", id), strings.ToLower(d.accounts[3].Type.String())},
 | 
			
		||||
			{"Balance()", fmt.Sprintf("return get_accounts()[%d]:Balance().Amount", id), "87.19"},
 | 
			
		||||
			{"Balance(1)", fmt.Sprintf("return get_accounts()[%d]:Balance(date.new('2017-10-30')).Amount", id), "5.6"},
 | 
			
		||||
			{"Balance(2)", fmt.Sprintf("return get_accounts()[%d]:Balance(date.new('2017-10-30'), date.new('2017-11-01')).Amount", id), "81.59"},
 | 
			
		||||
			{"Balance(2)", fmt.Sprintf("return get_accounts()[%d]:Balance(date.new(2017, 10, 30), date.new('2017-11-01')).Amount", id), "81.59"},
 | 
			
		||||
			{"__tostring", fmt.Sprintf("return get_accounts()[%d]", id), "Expenses/Groceries"},
 | 
			
		||||
			{"__eq", `
 | 
			
		||||
accounts = get_accounts()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user