Removed wrong test

This commit is contained in:
Martino Ferrari
2026-01-23 11:42:34 +01:00
parent 2aeec1e5f6
commit 4379960835

View File

@@ -9,39 +9,6 @@ import (
"github.com/marte-dev/marte-dev-tools/internal/validator"
)
func TestSchemaValidationMandatory(t *testing.T) {
// StateMachine requires "States"
content := `
+MySM = {
Class = StateMachine
// Missing States
}
`
p := parser.NewParser(content)
config, err := p.Parse()
if err != nil {
t.Fatalf("Parse failed: %v", err)
}
idx := index.NewProjectTree()
idx.AddFile("test.marte", config)
v := validator.NewValidator(idx, ".")
v.ValidateProject()
found := false
for _, d := range v.Diagnostics {
if strings.Contains(d.Message, "States: field is required") {
found = true
break
}
}
if !found {
t.Error("Expected error for missing mandatory field 'States', but found none")
}
}
func TestSchemaValidationType(t *testing.T) {
// OrderedClass: First (int), Second (string)
content := `