Opened 6 years ago

Closed 5 years ago

#390 closed defect (fixed)

Index raises CONSTRAINT_ERROR

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 0.7.0
Component: Matreshka - League Version: 0.6.0
Keywords: Index Cc:

Description

with League.Strings;
procedure Aaa is
   X : League.Strings.Universal_String :=
     League.Strings.To_Universal_String ("ENV_IN");
   Y : Integer := X.Index ("ENV_OUT");
begin
   null;
end Aaa;

$ /tmp/aaa

raised CONSTRAINT_ERROR : matreshka-internals-strings-handlers.adb:151 range check failed

Change History (4)

comment:1 by vadim.godunko, 5 years ago

Milestone: 0.7.0

comment:2 by vadim.godunko, 5 years ago

In 5327:

Use length of pattern to check possibility of match.

Refs #390.

comment:3 by vadim.godunko, 5 years ago

In 5329:

Add automated test.

Refs #390.

comment:4 by vadim.godunko, 5 years ago

Milestone: 0.7.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.