@@ -14,8 +14,12 @@ void main() {
1414 const String upperCaseSentence = 'THIS SENTENCE CONTAIN MULTIPLY WORDS' ;
1515 const String multiCaseSentence = 'This Sentence contain Multiply words' ;
1616 const String identifier = 'hello_123' ;
17+ const String identifier2 = '_hello123' ;
1718 const String camel = 'hello world' ;
1819 const String tab = 'H\t e\t l\t l\t o' ;
20+ const String nonASCIICharacter1 = 'こんにちは世界' ;
21+ const String nonASCIICharacter2 = '٩٣' ;
22+ const String nonASCIICharacter3 = 'مرحبا٩٣' ;
1923
2024 final Matcher throwsAssertionError = throwsA (isA <AssertionError >());
2125
@@ -83,6 +87,9 @@ void main() {
8387
8488 /// Expected True when a words conatining Alphabets and numbers is called.
8589 expect (multiCaseWord.isAlNum, true );
90+ expect (nonASCIICharacter1.isAlNum, true );
91+ expect (nonASCIICharacter2.isAlNum, true );
92+ expect (nonASCIICharacter3.isAlNum, true );
8693 expect (multiCaseWordWithNumber.isAlNum, true );
8794
8895 /// Expected False when a senetence is called.
@@ -98,6 +105,9 @@ void main() {
98105
99106 /// Expected True when a words conatining only Alphabets called.
100107 expect (multiCaseWord.isAlpha, true );
108+ expect (nonASCIICharacter3.isAlpha, false );
109+ expect (nonASCIICharacter2.isAlpha, false );
110+ expect (nonASCIICharacter1.isAlpha, true );
101111
102112 /// Expected False when a words conatining both Alphabets and Number called.
103113 expect (multiCaseWordWithNumber.isAlpha, false );
@@ -127,6 +137,11 @@ void main() {
127137
128138 /// Expected False when a special character is called.
129139 expect (specialCharacter.isInteger, false );
140+
141+ /// Expected True when other language's number is called.
142+ expect (nonASCIICharacter2.isInteger, true );
143+ expect (nonASCIICharacter3.isInteger, false );
144+ expect (nonASCIICharacter1.isInteger, false );
130145 });
131146
132147 test ('isIdentifier' , () async {
@@ -136,12 +151,15 @@ void main() {
136151 /// Expected False when a number is called. Since Indentifier should
137152 /// not start with numbers.
138153 expect (number.isIdentifier, false );
154+ expect (nonASCIICharacter2.isIdentifier, false );
139155
140156 /// Expected True when a words conatining only Alphabets called.
141157 expect (multiCaseWord.isIdentifier, true );
158+ expect (nonASCIICharacter1.isIdentifier, true );
142159
143160 /// Expected True when a words conatining both Alphabets and Number called.
144161 expect (multiCaseWordWithNumber.isIdentifier, true );
162+ expect (nonASCIICharacter3.isIdentifier, true );
145163
146164 /// Expected False when a senetence is called.
147165 expect (multiCaseSentence.isIdentifier, false );
@@ -154,6 +172,7 @@ void main() {
154172
155173 /// Expected True when a word containing `_` is called.
156174 expect (identifier.isIdentifier, true );
175+ expect (identifier2.isIdentifier, true );
157176 });
158177
159178 test ('title' , () {
0 commit comments