-
Notifications
You must be signed in to change notification settings - Fork 0
SPLIT hangs on empty delimiter. #116
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingpatchRequires a patch version change.Requires a patch version change.
Description
According to the specification section 9.1.5:
TNS: SPLIT(STR: value, STR: delimiter = " ")= MUST splitvalueon the exact substringdelimiterand return the parts as a one-dimensional tensor ofSTR.delimiterMUST be non-empty. Consecutive delimiters and trailing delimiters MUST produce empty-string elements.
In the implementation, however, when an empty STR is passed to SPLIT as delimiter, the interpreter hangs, rather than erroring.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpatchRequires a patch version change.Requires a patch version change.