mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-31 16:00:05 -04:00
testing: Don't omit the 0th elements when testing
This commit is contained in:
parent
5504d37482
commit
0863e5fa5c
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user