package spawn

import (
	"testing"
)

func TestPackageBuild(t *testing.T) {
	// Simple test to verify the package builds
	spawn := NewSpawn()
	if spawn == nil {
		t.Fatal("NewSpawn returned nil")
	}

	if spawn.GetID() != 0 {
		t.Errorf("Expected default ID 0, got %d", spawn.GetID())
	}
}

func TestSpawnBasics(t *testing.T) {
	spawn := NewSpawn()
	
	spawn.SetName("Test Spawn")
	if spawn.GetName() != "Test Spawn" {
		t.Errorf("Expected name 'Test Spawn', got '%s'", spawn.GetName())
	}

	spawn.SetLevel(25)
	if spawn.GetLevel() != 25 {
		t.Errorf("Expected level 25, got %d", spawn.GetLevel())
	}
}