@ -2,8 +2,8 @@ package model
import (
import (
"git.nagee.dev/isthisnagee/diary/db"
"git.nagee.dev/isthisnagee/diary/db"
"testing"
"runtime/debug"
"runtime/debug"
"testing"
)
)
func assert_string ( t * testing . T , expected string , actual string ) {
func assert_string ( t * testing . T , expected string , actual string ) {
@ -120,7 +120,6 @@ func TestGetDiaryEntries(t *testing.T) {
assert_int ( t , result_2 . Id , entries [ 0 ] . Id )
assert_int ( t , result_2 . Id , entries [ 0 ] . Id )
assert_int ( t , result_1 . Id , entries [ 1 ] . Id )
assert_int ( t , result_1 . Id , entries [ 1 ] . Id )
var numEntries = new ( int64 )
var numEntries = new ( int64 )
* numEntries = 1
* numEntries = 1
entries = app . GetDiaryEntries (
entries = app . GetDiaryEntries (
@ -132,6 +131,5 @@ func TestGetDiaryEntries(t *testing.T) {
assert_int ( t , int64 ( len ( entries ) ) , 1 )
assert_int ( t , int64 ( len ( entries ) ) , 1 )
assert_int ( t , result_2 . Id , entries [ 0 ] . Id )
assert_int ( t , result_2 . Id , entries [ 0 ] . Id )
teardown ( app )
teardown ( app )
}
}