Ls049 — Boolean attribute given bare `TRUE` (no dots)

§12.1c enumeration token form

syntax

Sources

Description

`EDGE_CURVE.same_sense` is a BOOLEAN encoded as the dotted enum `.T.` or `.F.`. A writer that emits the bare keyword `TRUE` (no dots) drops the enum-token framing required by ISO 10303-21. Distinct from Ls034 in that the BOOLEAN slot of an `EDGE_CURVE` is the canonical `same_sense` kernel surface, where the kernel may default to `true` on read failure rather than rejecting.

Reproducer recipe

`EDGE_CURVE('',#12,#13,#14,TRUE);` — bare `TRUE` token at the BOOLEAN slot.

Expected kernel behavior

Strict reject; lenient mode may default to `.T.` with a warning.

Notes

**See also**: Ls034, Ls035, Ls050. Synonyms: "bare TRUE without dots in STEP", "BOOLEAN written without dot delimiters", "EDGE_CURVE same_sense bare keyword", "TRUE/FALSE without dot framing", "STEP boolean missing enum dots".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Ls034, Ls035, Ls050

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls049 - Boolean attribute given bare TRUE (no dots)
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c enumeration token form
4   Sources         : Q053, G028
5   See also        : Ls034, Ls035, Ls050
6   ----------------------------------------------------------------------
7   Defect
8     EDGE_CURVE.same_sense is a BOOLEAN (.T./.F. only). A writer that
9     emits the bare keyword TRUE (no dots) drops the enum-token framing
10     required by ISO 10303-21. Distinct from Ls034 in that the BOOLEAN
11     slot of EDGE_CURVE is the canonical same_sense kernel surface.
12   Expected behavior
13     Strict reject; lenient mode may default to .T. with a warning.
14   ----------------------------------------------------------------------
15*/
16ISO-10303-21;
17HEADER;
18FILE_DESCRIPTION(('Ls049 - EDGE_CURVE same_sense given bare TRUE without dots'),'2;1');
19FILE_NAME('Ls049.stp','2026-06-20T00:00:00',('auto-generated'),(''),
20  'auto-generated','','');
21FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
22ENDSEC;
23DATA;
24#1=CARTESIAN_POINT('p1',(0.,0.,0.));
25#2=CARTESIAN_POINT('p2',(1.,0.,0.));
26#3=DIRECTION('dir',(1.,0.,0.));
27#4=VECTOR('v',#3,1.);
28#5=LINE('l',#1,#4);
29#6=VERTEX_POINT('v1',#1);
30#7=VERTEX_POINT('v2',#2);
31/* Defect: bare TRUE (no dots) at the same_sense BOOLEAN slot */
32/* Correct form would be: #8=EDGE_CURVE('',#6,#7,#5,.T.); */
33#8=EDGE_CURVE('',#6,#7,#5,TRUE);
34ENDSEC;
35END-ISO-10303-21;