Skip to content

Commit 4ce8412

Browse files
committed
Consistent tuple variable naming
1 parent 8105c74 commit 4ce8412

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/SIL.Machine/PunctuationAnalysis/TextSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public SurrogatePairString(string stringValue)
189189
_stringValue = stringValue;
190190
IEnumerable<(int StringIndex, int SurrogatePairIndex)> indexPairs = _stringValue
191191
.Select((c, stringIndex) => (c, stringIndex))
192-
.Where(tup => !char.IsLowSurrogate(tup.c))
193-
.Select((tup, surrogatePairIndex) => (tup.stringIndex, surrogatePairIndex));
192+
.Where(tuple => !char.IsLowSurrogate(tuple.c))
193+
.Select((tuple, surrogatePairIndex) => (tuple.stringIndex, surrogatePairIndex));
194194
_surrogatePairIndexByStringIndex = new Dictionary<int, int>();
195195
_stringIndexBySurrogatePairIndex = new Dictionary<int, int>();
196196
foreach ((int stringIndex, int surrogatePairIndex) in indexPairs)

tests/SIL.Machine.Tests/PunctuationAnalysis/QuotationDenormalizationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ of the field which Yahweh God had made.
4444
List<(int ChapterNumber, QuotationMarkUpdateStrategy Strategy)> bestChapterStrategies =
4545
quotationMarkDenormalizationFirstPass.FindBestChapterStrategies();
4646

47-
Assert.That(bestChapterStrategies.Select(tup => tup.ChapterNumber).SequenceEqual([1]));
47+
Assert.That(bestChapterStrategies.Select(tuple => tuple.ChapterNumber).SequenceEqual([1]));
4848

4949
var quotationMarkDenormalizer = new QuotationMarkDenormalizationUsfmUpdateBlockHandler(
5050
standardEnglishQuoteConvention,
5151
new QuotationMarkUpdateSettings(
52-
chapterStrategies: bestChapterStrategies.Select(tup => tup.Strategy).ToList()
52+
chapterStrategies: bestChapterStrategies.Select(tuple => tuple.Strategy).ToList()
5353
)
5454
);
5555

tests/SIL.Machine.Tests/PunctuationAnalysis/QuotationMarkUpdateFirstPassTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ string targetQuoteConventionName
749749
var firstPassAnalyzer = new QuotationMarkUpdateFirstPass(sourceQuoteConvention, targetQuoteConvention);
750750
UsfmParser.Parse(normalizedUsfm, firstPassAnalyzer);
751751

752-
return firstPassAnalyzer.FindBestChapterStrategies().Select(tup => tup.Strategy).ToList();
752+
return firstPassAnalyzer.FindBestChapterStrategies().Select(tuple => tuple.Strategy).ToList();
753753
}
754754

755755
private static QuotationMarkUpdateStrategy RunFirstPassOnChapter(

0 commit comments

Comments
 (0)