mc root source folder cleanup
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package data_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/admin-else/strom/mc/data"
|
||||
)
|
||||
|
||||
func TestLookUpProtocolVersion(t *testing.T) {
|
||||
version, err := data.LookUpVersionByProtocolVersion(772)
|
||||
if err != nil {
|
||||
t.Fatalf("Expected to find version 772, got error: %v", err)
|
||||
}
|
||||
if version.MinecraftVersion != "1.21.8" {
|
||||
t.Errorf("Expected version 1.21.8, got %s", version.MinecraftVersion)
|
||||
}
|
||||
t.Logf("Found version %v", version)
|
||||
}
|
||||
Reference in New Issue
Block a user