[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is this a wrong test?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 3 Apr 2019 11:11:05 -0300
> > testes\utf8.lua: 69
> The line in question is:
> assert(utf8.len(s, 1, pi, -1, nonstrict) == i)
> The effect is the same as
> assert(utf8.len(s, 1, pi, true) == i)
> but perhaps the intended test was
> assert(utf8.len(s, 1, pi, nonstrict) == i)
> which is only the same when nonstrict is truey.
Sure. Thanks to both of you.