Skip to content

Commit

Permalink
Merge branch 'main' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Jan 28, 2024
2 parents 2e5ffa3 + 766eeb3 commit 0b57cb5
Show file tree
Hide file tree
Showing 4 changed files with 764 additions and 79 deletions.
3 changes: 3 additions & 0 deletions tests/indicators/Tests.Indicators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<None Update="a-d\Adx\issue859quotes.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="s-z\WilliamsR\issue1127quotes.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="_common\data\bad.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
73 changes: 0 additions & 73 deletions tests/indicators/_common/Helper.LiveQuotes.cs

This file was deleted.

13 changes: 7 additions & 6 deletions tests/indicators/s-z/WilliamsR/WilliamsR.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,19 @@ public void Boundary()
}

[TestMethod]
public async Task Issue1127()
public void Issue1127()
{
// initialize
IEnumerable<Quote> quotes = await FeedData
.GetQuotes("A", 365 * 3)
.ConfigureAwait(false);
IOrderedEnumerable<Quote> test1127 = File.ReadAllLines("s-z/WilliamsR/issue1127quotes.csv")
.Skip(1)
.Select(Importer.QuoteFromCsv)
.OrderByDescending(x => x.Date);

List<Quote> quotesList = quotes.ToList();
List<Quote> quotesList = test1127.ToList();
int length = quotesList.Count;

// get indicators
List<WilliamsResult> resultsList = quotes
List<WilliamsResult> resultsList = test1127
.GetWilliamsR(14)
.ToList();

Expand Down
Loading

0 comments on commit 0b57cb5

Please sign in to comment.