step-examples/12-1c-syntax/Ls005.stp
Sources
- T044
Description
Some generators write `+1.0` for positive REAL. The Part-21 BNF arguably disallows leading `+` for INTEGER but admits it for REAL; uniform handling preferred.
Reproducer recipe
`#1=IFCDIRECTION((+1.,+0.,+0.));`
Expected kernel behavior
Accept signed reals and integers uniformly; never silently strip the sign.
Notes
**See also**: Ls001. **OCC behavior**: silently strips the leading `+` sign with no diagnostic on the surrounding context; kernel mishandling; the catalog above expects uniform handling without sign-stripping. Synonyms: "plus sign on positive REAL", "+1.0 in STEP literal", "explicit positive sign on numeric", "STEP rejects leading plus", "INTEGER with explicit plus".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'\(\s*\+\d')matches(rb'\(\+\d')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ls005: Explicit positive sign on numeric literal in STEP REAL; some generators write +1.0 for positive REAL; the Part-21 BNF arguably disallows leading plus for INTEGER but admits it for REAL; uniform handling is preferred; defect: DIRECTION('',(+1.,+0.,+0.)) â explicit leading plus on every coordinate value; VECTOR magnitude uses +1. (another leading-plus REAL); OCC silently strips the leading plus sign with no diagnostic; conforming kernel must accept signed reals and integers uniformly and never silently strip the sign; synonyms: plus sign on positive REAL, +1.0 in STEP literal, explicit positive sign on numeric, STEP rejects leading plus, INTEGER with explicit plus; GEOMETRIC_CURVE_SET IS NOT used â DIRECTION entity is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Ls005'),'2;1'); 5FILE_NAME('Ls005.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Defect: explicit positive sign on numeric literals. */ 10/* Part-21 BNF is ambiguous on leading +; uniform handling required. */ 11/* OCC silently strips leading + â conformant kernel must not. */ 12#1=DIRECTION('',(+1.,+0.,+0.)); 13#2=CARTESIAN_POINT('origin',(+0.,+0.,+0.)); 14#3=VECTOR('v',#1,+1.); 15#4=LINE('l',#2,#3); 16ENDSEC; 17END-ISO-10303-21;