@@ -4,13 +4,7 @@ import 'package:running_on_dart/src/modules/poop_name.dart';
44void main () {
55 group ('weirdCharsRegexp' , () {
66 test ('should catch Mathematical Alphanumeric Symbols (original examples)' , () {
7- final testCases = [
8- '𝕯𝖗𝖚𝖌𝖘' ,
9- '𝕾𝖚𝖌𝖆𝖗𝕾𝖊𝖆𝖓' ,
10- '𝖚𝖗𝖉𝖚𝖍 ♛' ,
11- '𝑇𝑟𝑎𝑣𝑖𝑠' ,
12- '𝔃𝓲𝓰𝓪' ,
13- ];
7+ final testCases = ['𝕯𝖗𝖚𝖌𝖘' , '𝕾𝖚𝖌𝖆𝖗𝕾𝖊𝖆𝖓' , '𝖚𝖗𝖉𝖚𝖍 ♛' , '𝑇𝑟𝑎𝑣𝑖𝑠' , '𝔃𝓲𝓰𝓪' ];
148
159 for (final testCase in testCases) {
1610 expect (
@@ -39,12 +33,7 @@ void main() {
3933 });
4034
4135 test ('should catch excessive currency symbol abuse (3+ symbols)' , () {
42- final testCases = [
43- '₮₴₹test' ,
44- '₮₴₹₽₪test' ,
45- 'test₮₴₹name' ,
46- '₮₴₹₽₪₫₡₢₣₤₥₦₧₨₩₮₯₰₱₲₳₴₵₶₷₸₹₺₻₼₽₾₿' ,
47- ];
36+ final testCases = ['₮₴₹test' , '₮₴₹₽₪test' , 'test₮₴₹name' , '₮₴₹₽₪₫₡₢₣₤₥₦₧₨₩₮₯₰₱₲₳₴₵₶₷₸₹₺₻₼₽₾₿' ];
4837
4938 for (final testCase in testCases) {
5039 expect (
@@ -56,12 +45,7 @@ void main() {
5645 });
5746
5847 test ('should NOT catch moderate currency symbol use (1-2 symbols)' , () {
59- final testCases = [
60- '₮testname' ,
61- 'test₴name' ,
62- '₮test₴' ,
63- 'user₹name₽' ,
64- ];
48+ final testCases = ['₮testname' , 'test₴name' , '₮test₴' , 'user₹name₽' ];
6549
6650 for (final testCase in testCases) {
6751 expect (
@@ -87,13 +71,7 @@ void main() {
8771 });
8872
8973 test ('should preserve existing invisible character detection' , () {
90- final testCases = [
91- 'test\u 200Bname' ,
92- 'name\u 202Etext' ,
93- 'test\u 2060name' ,
94- 'name\u FEFFtext' ,
95- 'test\u 00ADname' ,
96- ];
74+ final testCases = ['test\u 200Bname' , 'name\u 202Etext' , 'test\u 2060name' , 'name\u FEFFtext' , 'test\u 00ADname' ];
9775
9876 for (final testCase in testCases) {
9977 expect (
@@ -116,7 +94,7 @@ void main() {
11694 'kebab-case-user' ,
11795 'User123' ,
11896 'SimpleTest' ,
119- 'café' ,
97+ 'café' ,
12098 'naïve' ,
12199 'résumé' ,
122100 ];
@@ -127,12 +105,7 @@ void main() {
127105 });
128106
129107 test ('should catch ASCII control characters' , () {
130- final testCases = [
131- 'test\x 00name' ,
132- 'test\x 1Fname' ,
133- 'test\x 7Fname' ,
134- 'test\x 9Fname' ,
135- ];
108+ final testCases = ['test\x 00name' , 'test\x 1Fname' , 'test\x 7Fname' , 'test\x 9Fname' ];
136109
137110 for (final testCase in testCases) {
138111 expect (
0 commit comments