diff options
author | Joseph Tremoulet <jotrem@microsoft.com> | 2017-09-15 10:48:39 -0400 |
---|---|---|
committer | Joseph Tremoulet <jotrem@microsoft.com> | 2017-09-15 13:47:00 -0400 |
commit | 0dcaa77af69a4da0d5c79fe3442dd35a6ea10383 (patch) | |
tree | 8ea20e1809959f872fece4acfc9594d3c8d4b712 /tests | |
parent | be6743ddda5ba42a9e1e52aadce4057708d61738 (diff) | |
download | coreclr-0dcaa77af69a4da0d5c79fe3442dd35a6ea10383.tar.gz coreclr-0dcaa77af69a4da0d5c79fe3442dd35a6ea10383.tar.bz2 coreclr-0dcaa77af69a4da0d5c79fe3442dd35a6ea10383.zip |
Manual formatting adjustments
Auto-formatting was leaving some new array expressions oddly indented.
Diffstat (limited to 'tests')
4 files changed, 68 insertions, 65 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-1.cs b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-1.cs index 2d6632fba9..0535c21adf 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-1.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-1.cs @@ -267,30 +267,30 @@ namespace BenchmarksGame } static Frequency[] IUB = { - new Frequency ('a', 0.27) - ,new Frequency ('c', 0.12) - ,new Frequency ('g', 0.12) - ,new Frequency ('t', 0.27) - - ,new Frequency ('B', 0.02) - ,new Frequency ('D', 0.02) - ,new Frequency ('H', 0.02) - ,new Frequency ('K', 0.02) - ,new Frequency ('M', 0.02) - ,new Frequency ('N', 0.02) - ,new Frequency ('R', 0.02) - ,new Frequency ('S', 0.02) - ,new Frequency ('V', 0.02) - ,new Frequency ('W', 0.02) - ,new Frequency ('Y', 0.02) -}; + new Frequency ('a', 0.27), + new Frequency ('c', 0.12), + new Frequency ('g', 0.12), + new Frequency ('t', 0.27), + + new Frequency ('B', 0.02), + new Frequency ('D', 0.02), + new Frequency ('H', 0.02), + new Frequency ('K', 0.02), + new Frequency ('M', 0.02), + new Frequency ('N', 0.02), + new Frequency ('R', 0.02), + new Frequency ('S', 0.02), + new Frequency ('V', 0.02), + new Frequency ('W', 0.02), + new Frequency ('Y', 0.02) + }; static Frequency[] HomoSapiens = { - new Frequency ('a', 0.3029549426680) - ,new Frequency ('c', 0.1979883004921) - ,new Frequency ('g', 0.1975473066391) - ,new Frequency ('t', 0.3015094502008) -}; + new Frequency ('a', 0.3029549426680), + new Frequency ('c', 0.1979883004921), + new Frequency ('g', 0.1975473066391), + new Frequency ('t', 0.3015094502008) + }; private static void FillRandom(int[] result) diff --git a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-2.cs b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-2.cs index ac0348670a..3694e5de47 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-2.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/fasta/fasta-2.cs @@ -88,30 +88,30 @@ namespace BenchmarksGame } static Frequency[] IUB = { - new Frequency ('a', 0.27) - ,new Frequency ('c', 0.12) - ,new Frequency ('g', 0.12) - ,new Frequency ('t', 0.27) - - ,new Frequency ('B', 0.02) - ,new Frequency ('D', 0.02) - ,new Frequency ('H', 0.02) - ,new Frequency ('K', 0.02) - ,new Frequency ('M', 0.02) - ,new Frequency ('N', 0.02) - ,new Frequency ('R', 0.02) - ,new Frequency ('S', 0.02) - ,new Frequency ('V', 0.02) - ,new Frequency ('W', 0.02) - ,new Frequency ('Y', 0.02) - }; + new Frequency ('a', 0.27), + new Frequency ('c', 0.12), + new Frequency ('g', 0.12), + new Frequency ('t', 0.27), + + new Frequency ('B', 0.02), + new Frequency ('D', 0.02), + new Frequency ('H', 0.02), + new Frequency ('K', 0.02), + new Frequency ('M', 0.02), + new Frequency ('N', 0.02), + new Frequency ('R', 0.02), + new Frequency ('S', 0.02), + new Frequency ('V', 0.02), + new Frequency ('W', 0.02), + new Frequency ('Y', 0.02) + }; static Frequency[] HomoSapiens = { - new Frequency ('a', 0.3029549426680) - ,new Frequency ('c', 0.1979883004921) - ,new Frequency ('g', 0.1975473066391) - ,new Frequency ('t', 0.3015094502008) - }; + new Frequency ('a', 0.3029549426680), + new Frequency ('c', 0.1979883004921), + new Frequency ('g', 0.1975473066391), + new Frequency ('t', 0.3015094502008) + }; static void MakeCumulative(Frequency[] a) { diff --git a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regex-redux/regex-redux-1.cs b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regex-redux/regex-redux-1.cs index 069d47c096..730100284e 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regex-redux/regex-redux-1.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/regex-redux/regex-redux-1.cs @@ -72,16 +72,16 @@ namespace BenchmarksGame // regex match string[] variants = { - "agggtaaa|tttaccct" - ,"[cgt]gggtaaa|tttaccc[acg]" - ,"a[act]ggtaaa|tttacc[agt]t" - ,"ag[act]gtaaa|tttac[agt]ct" - ,"agg[act]taaa|ttta[agt]cct" - ,"aggg[acg]aaa|ttt[cgt]ccct" - ,"agggt[cgt]aa|tt[acg]accct" - ,"agggta[cgt]a|t[acg]taccct" - ,"agggtaa[cgt]|[acg]ttaccct" - }; + "agggtaaa|tttaccct", + "[cgt]gggtaaa|tttaccc[acg]", + "a[act]ggtaaa|tttacc[agt]t", + "ag[act]gtaaa|tttac[agt]ct", + "agg[act]taaa|ttta[agt]cct", + "aggg[acg]aaa|ttt[cgt]ccct", + "agggt[cgt]aa|tt[acg]accct", + "agggta[cgt]a|t[acg]taccct", + "agggtaa[cgt]|[acg]ttaccct" + }; int count; foreach (string v in variants) @@ -97,12 +97,12 @@ namespace BenchmarksGame // regex substitution IUB[] codes = { - new IUB("tHa[Nt]", "<4>") - ,new IUB("aND|caN|Ha[DS]|WaS", "<3>") - ,new IUB("a[NSt]|BY", "<2>") - ,new IUB("<[^>]*>", "|") - ,new IUB("\\|[^|][^|]*\\|" , "-") - }; + new IUB("tHa[Nt]", "<4>"), + new IUB("aND|caN|Ha[DS]|WaS", "<3>"), + new IUB("a[NSt]|BY", "<2>"), + new IUB("<[^>]*>", "|"), + new IUB("\\|[^|][^|]*\\|" , "-") + }; foreach (IUB iub in codes) { diff --git a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/reverse-complement-6.cs b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/reverse-complement-6.cs index 04573dfa04..70d84d4f90 100644 --- a/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/reverse-complement-6.cs +++ b/tests/src/JIT/Performance/CodeQuality/BenchmarksGame/reverse-complement/reverse-complement-6.cs @@ -27,7 +27,12 @@ using Xunit; namespace BenchmarksGame { - class RevCompSequence { public List<byte[]> Pages; public int StartHeader, EndExclusive; public Thread ReverseThread; } + class RevCompSequence + { + public List<byte[]> Pages; + public int StartHeader, EndExclusive; + public Thread ReverseThread; + } public static class ReverseComplement_6 { @@ -110,8 +115,7 @@ namespace BenchmarksGame { var sequence = new RevCompSequence { - Pages = data - , + Pages = data, StartHeader = startHeader, EndExclusive = i }; @@ -127,8 +131,7 @@ namespace BenchmarksGame i = Array.IndexOf<byte>(data[data.Count - 1], 0, 0); var lastSequence = new RevCompSequence { - Pages = data - , + Pages = data, StartHeader = startHeader, EndExclusive = i == -1 ? data[data.Count - 1].Length : i }; |