mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-10-30 09:33:25 -04: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())}, | 			{"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()", 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(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"}, | 			{"__tostring", fmt.Sprintf("return get_accounts()[%d]", id), "Expenses/Groceries"}, | ||||||
| 			{"__eq", ` | 			{"__eq", ` | ||||||
| accounts = get_accounts() | accounts = get_accounts() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user