Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit faa177e

Browse files
committed
Merge pull request #311 from techcap/GroupTestsEncoding
Change GroupTests.cs encoding from ASCII to Unicode
2 parents df70151 + d1e8312 commit faa177e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Test/Platform/Tests/CLR/System/Text/Regexp/GroupTests.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using Microsoft.SPOT;
33
using Microsoft.SPOT.Platform.Test;
44
using System.Text.RegularExpressions;
@@ -63,23 +63,23 @@ public MFTestResults RegExpTest_6_Group_Test_1_GroupCollection()
6363
{
6464
/*
6565
// The example displays the following output:
66-
// ®: Microsoft
67-
// ®: Excel
68-
// ®: Access
69-
// ®: Outlook
70-
// ®: PowerPoint
71-
// ™: Silverlight
66+
// ®: Microsoft
67+
// ®: Excel
68+
// ®: Access
69+
// ®: Outlook
70+
// ®: PowerPoint
71+
// ™: Silverlight
7272
// Found 6 trademarks or registered trademarks.
7373
*/
7474
bool result = true;
7575
int expectedCount = 6;
7676

77-
string pattern = @"\b(\w+?)([®™])";
78-
string input = "Microsoft® Office Professional Edition combines several office " +
79-
"productivity products, including Word, Excel®, Access®, Outlook®, " +
80-
"PowerPoint®, and several others. Some guidelines for creating " +
77+
string pattern = @"\b(\w+?)([®™])";
78+
string input = "Microsoft® Office Professional Edition combines several office " +
79+
"productivity products, including Word, Excel®, Access®, Outlook®, " +
80+
"PowerPoint®, and several others. Some guidelines for creating " +
8181
"corporate documents using these productivity tools are available " +
82-
"from the documents created using Silverlight™ on the corporate " +
82+
"from the documents created using Silverlight™ on the corporate " +
8383
"intranet site.";
8484
Regex test = new Regex(pattern);
8585
MatchCollection matches = test.Matches(input);
@@ -96,27 +96,27 @@ public MFTestResults RegExpTest_6_Group_Test_1_GroupCollection()
9696
result = false;
9797
}
9898

99-
if (matches[0].ToString() != "Microsoft®")
99+
if (matches[0].ToString() != "Microsoft®")
100100
{
101101
result = false;
102102
}
103-
else if (matches[1].ToString() != "Excel®")
103+
else if (matches[1].ToString() != "Excel®")
104104
{
105105
result = false;
106106
}
107-
else if (matches[2].ToString() != "Access®")
107+
else if (matches[2].ToString() != "Access®")
108108
{
109109
result = false;
110110
}
111-
else if (matches[3].ToString() != "Outlook®")
111+
else if (matches[3].ToString() != "Outlook®")
112112
{
113113
result = false;
114114
}
115-
else if (matches[4].ToString() != "PowerPoint®")
115+
else if (matches[4].ToString() != "PowerPoint®")
116116
{
117117
result = false;
118118
}
119-
else if (matches[5].ToString() != "Silverlight™")
119+
else if (matches[5].ToString() != "Silverlight™")
120120
{
121121
result = false;
122122
}

0 commit comments

Comments
 (0)