Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D47C96CB for ; Wed, 18 Jan 2012 01:22:40 +0000 (UTC) Received: (qmail 90372 invoked by uid 500); 18 Jan 2012 01:22:40 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 90258 invoked by uid 500); 18 Jan 2012 01:22:39 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 90242 invoked by uid 99); 18 Jan 2012 01:22:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 01:22:39 +0000 X-ASF-Spam-Status: No, hits=4.1 required=5.0 tests=HTML_MESSAGE,MANY_SPAN_IN_TEXT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of omarg.developer@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 01:22:32 +0000 Received: by wgbdr11 with SMTP id dr11so9778972wgb.0 for ; Tue, 17 Jan 2012 17:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U3IDbxpnC6/Xp/EVLtQU11aH+oyKejdk2ut7ip/mFjo=; b=xT1z9DrbG9GVa+gTWxZGFZ+qaPeiU3fFHmA4DfCxT36BkXUnNhBY5JOHrVIy5q5S8Z uA5HQo9VADh8ai2i/ppEMM86qZqvC14ntgZhIe8v7ok2eJc9dqJE/DpjXAG9acT2pgOE V4K4qKqXPWKNfm6W6moNvOT3XPL74SHZKJchg= MIME-Version: 1.0 Received: by 10.180.100.234 with SMTP id fb10mr27796765wib.5.1326849731187; Tue, 17 Jan 2012 17:22:11 -0800 (PST) Received: by 10.181.13.44 with HTTP; Tue, 17 Jan 2012 17:22:11 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Jan 2012 17:22:11 -0800 Message-ID: Subject: Re: Spark StringValidator From: Omar Gonzalez To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d043748f3e5d35704b6c34684 --f46d043748f3e5d35704b6c34684 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Do you have any unit tests set up that replicate the issue? I set up some really basic tests to see if I could get a failed test but perhaps I'm not understanding the bug correctly, below are the tests I ran (just a few quickies) but none of them failed. package flexUnitTests { import org.flexunit.asserts.assertEquals; import org.flexunit.asserts.fail; public class StringTests { [Test] public function length_arabicString_lengthShouldReturnEight():void { var arabic:String =3D "=D8=A7=D9=84=D8=A3=D8=B1=D8=A8=D8=B9=D8=A7=D8=A1"; assertEquals(8, arabic.length); } [Test] public function length_chineseString_lengthShouldReturnTwentyNine():void { var chinese:String =3D "Here is some arabic: =D8=A7=D9=84=D8=A3=D8=B1=D8= =A8=D8=B9=D8=A7=D8=A1"; assertEquals(29, chinese.length); } [Test] public function length_japaneseString_lengthShouldReturnTen():void { var japanese:String =3D "=E4=B8=80=E4=BA=8C=E4=B8=89=E5=9B=9B=E4=BA=94=E5= =85=AD=E4=B8=83=E5=85=AB=E4=B9=9D=E3=80=87"; assertEquals(10, japanese.length); } [Test] public function length_spanishString_lengthShouldReturnSeventeen():void { var spanish:String =3D "la ni=C3=B1a usa una =C3=B1"; assertEquals(17, spanish.length); } [Test] public function length_chineseString_lengthShouldReturnThree():void { var chinese:String =3D "=E5=81=87=E5=80=9F=E5=AD=97"; assertEquals(3, chinese.length); } [Test] public function length_chineseString_lengthShouldReturnNine():void { var chinese:String =3D "=E5=81=87=E5=80=9F=E5=AD=97=E5=BD=A2=E5=A3=B0=E5= =AD=97=E5=BD=A2=E8=81=B2=E5=AD=97"; assertEquals(9, chinese.length); } [Test] public function length_chineseString_lengthShouldReturnThirteen():void { var chinese:String =3D "=E5=81=87=E5=80=9F=E5=AD=97 =E5=BD=A2=E5=A3=B0=E5= =AD=97 / =E5=BD=A2=E8=81=B2=E5=AD=97"; assertEquals(13, chinese.length); } [Test] public function length_chineseString_lengthShouldReturnThirtyFive():void { var chinese:String =3D "Here is some chinese: =E5=81=87=E5=80=9F=E5=AD=97 = =E5=BD=A2=E5=A3=B0=E5=AD=97 / =E5=BD=A2=E8=81=B2=E5=AD=97"; assertEquals(35, chinese.length); } } } -omar --f46d043748f3e5d35704b6c34684--