Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,29 @@
package object_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/inkyblackness/hacked/ss1/content/object"
)
func TestStandardDescriptorsReturnsProperLength(t *testing.T) {
descriptor := object.StandardDescriptors()
totalLength := 4 // version prefix
for _, classDesc := range descriptor {
totalLength += classDesc.TotalDataSize()
}
assert.Equal(t, 17951, totalLength) // as taken from original CD
}
func TestStandardDescriptorsReturnsProperAmount(t *testing.T) {
descriptor := object.StandardDescriptors()
total := 0
for _, classDesc := range descriptor {
total += classDesc.TotalTypeCount()
}
assert.Equal(t, 476, total)
}