You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dafny, C# and Java codegen all check the @Length constraints against the number of UTF-16 code points in the string, instead of the number of Unicode scalar values as they are supposed to.
The Constraints test model doesn't test this deeply enough to reveal it: it only uses ASCII test input. It does a better job on strings with @dafnyUTF8Bytes applied, and I believe all languages are implementing @Length correctly on those strings.
The text was updated successfully, but these errors were encountered:
The Dafny, C# and Java codegen all check the @Length constraints against the number of UTF-16 code points in the string, instead of the number of Unicode scalar values as they are supposed to.
The
Constraints
test model doesn't test this deeply enough to reveal it: it only uses ASCII test input. It does a better job on strings with@dafnyUTF8Bytes
applied, and I believe all languages are implementing @Length correctly on those strings.The text was updated successfully, but these errors were encountered: