Skip to content

witness looks buggy #177

@cshardin

Description

@cshardin

The witness function in core.ml can generate strings that don't match the expression, because it ignores the semantics of things like eow. Minimal example:

let t = Re.seq [ Re.eow; Re.str "foo" ] in
let witness = Re.witness t in
assert (not (Re.execp (Re.compile t) witness)) (* assertion succeeds but shouldn't *)

(For me personally this is low priority since I don't need that function. I just happened to notice it looked buggy.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions