Skip to content

test: add BOM fixture coverage for Python/Ruby AST serializers #454

Description

@rhuanbarreto

Context

From PR #452 review: the Python (utf-8-sig) and Ruby (r:bom|utf-8) BOM-stripping codecs are not directly tested with BOM-bearing fixtures. A regression in these encoding settings would slip through undetected.

Proposal

Add end-to-end tests that write fixtures with a UTF-8 BOM prefix (\xEF\xBB\xBF) and verify ctx.ast() parses them correctly for both Python and Ruby. This can go in either tests/engine/ast-support.test.ts (serializer-level) or tests/engine/runner-ast.test.ts (integration-level).

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions