move every struct into it's own directory in order to run tests individually.

This commit is contained in:
idk
2022-05-22 19:59:20 -04:00
parent 13b996d0da
commit 171f09bba6
33 changed files with 63 additions and 22 deletions

View File

@@ -0,0 +1,15 @@
package common
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestTimeFromMiliseconds(t *testing.T) {
assert := assert.New(t)
next_day := Date{0x00, 0x00, 0x00, 0x00, 0x05, 0x26, 0x5c, 0x00}
go_time := next_day.Time()
assert.Equal(int64(86400), go_time.Unix(), "Date.Time() did not parse time in milliseconds")
}