mirror of
				https://github.com/aclindsa/moneygo.git
				synced 2025-11-04 02:23:26 -05:00 
			
		
		
		
	testing: Don't omit the 0th elements when testing
This commit is contained in:
		@@ -50,7 +50,7 @@ func deleteAccount(client *http.Client, a *handlers.Account) error {
 | 
			
		||||
 | 
			
		||||
func TestCreateAccount(t *testing.T) {
 | 
			
		||||
	RunWith(t, &data[0], func(t *testing.T, d *TestData) {
 | 
			
		||||
		for i := 1; i < len(data[0].accounts); i++ {
 | 
			
		||||
		for i := 0; i < len(data[0].accounts); i++ {
 | 
			
		||||
			orig := data[0].accounts[i]
 | 
			
		||||
			a := d.accounts[i]
 | 
			
		||||
 | 
			
		||||
@@ -69,7 +69,7 @@ func TestCreateAccount(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
func TestGetAccount(t *testing.T) {
 | 
			
		||||
	RunWith(t, &data[0], func(t *testing.T, d *TestData) {
 | 
			
		||||
		for i := 1; i < len(data[0].accounts); i++ {
 | 
			
		||||
		for i := 0; i < len(data[0].accounts); i++ {
 | 
			
		||||
			orig := data[0].accounts[i]
 | 
			
		||||
			curr := d.accounts[i]
 | 
			
		||||
 | 
			
		||||
@@ -132,7 +132,7 @@ func TestGetAccounts(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
func TestUpdateAccount(t *testing.T) {
 | 
			
		||||
	RunWith(t, &data[0], func(t *testing.T, d *TestData) {
 | 
			
		||||
		for i := 1; i < len(data[0].accounts); i++ {
 | 
			
		||||
		for i := 0; i < len(data[0].accounts); i++ {
 | 
			
		||||
			orig := data[0].accounts[i]
 | 
			
		||||
			curr := d.accounts[i]
 | 
			
		||||
 | 
			
		||||
@@ -196,7 +196,7 @@ func TestUpdateAccount(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
func TestDeleteAccount(t *testing.T) {
 | 
			
		||||
	RunWith(t, &data[0], func(t *testing.T, d *TestData) {
 | 
			
		||||
		for i := 1; i < len(data[0].accounts); i++ {
 | 
			
		||||
		for i := 0; i < len(data[0].accounts); i++ {
 | 
			
		||||
			orig := data[0].accounts[i]
 | 
			
		||||
			curr := d.accounts[i]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -364,7 +364,7 @@ func TestUpdateTransaction(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
func TestDeleteTransaction(t *testing.T) {
 | 
			
		||||
	RunWith(t, &data[0], func(t *testing.T, d *TestData) {
 | 
			
		||||
		for i := 1; i < len(data[0].transactions); i++ {
 | 
			
		||||
		for i := 0; i < len(data[0].transactions); i++ {
 | 
			
		||||
			orig := data[0].transactions[i]
 | 
			
		||||
			curr := d.transactions[i]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user