import Testing @testable import PureXML @Suite("XSD Particle Restriction References") struct XSDParticleReferenceRestrictionTests { @Test("NameAndTypeOK: element refs keep the global declaration's type") func test_globalRefCarriesTypeMetadata() { let invalid = """ """ #expect((try? PureXML.Schema.Document(invalid)) == nil) let valid = """ """ #expect((try? PureXML.Schema.Document(valid)) != nil) } }