Skip to content

Commit

Permalink
fix: removed preview features from code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastermindzh committed Oct 31, 2023
1 parent 41c73d6 commit eaa6708
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GrowthBook.Tests/UtilitiesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static string GetTestNames(MethodInfo methodInfo, object[] values)

public static IList<double> RoundArray(IList<double> input)
{
List<double> results = [];
var results = new List<double>();
for (int i = 0; i < input.Count; i++)
{
results.Add(RoundStandard(input[i]));
Expand All @@ -39,7 +39,7 @@ public static IList<double> RoundArray(IList<double> input)

public IList<BucketRange> RoundBucketRanges(IList<BucketRange> input)
{
List<BucketRange> results = [];
var results = new List<BucketRange>();
foreach (BucketRange range in input)
{
results.Add(new BucketRange(RoundStandard(range.Start), RoundStandard(range.End)));
Expand All @@ -52,7 +52,7 @@ public static IEnumerable<object[]> GetBucketRangeTests()
{
foreach (JArray testCase in ((JArray)getStandardCases()["getBucketRange"]).Cast<JArray>())
{
List<BucketRange> expected = [];
var expected = new List<BucketRange>();
foreach (JArray jArray in testCase[2].Cast<JArray>())
{
expected.Add(new BucketRange(jArray[0].ToObject<double>(), jArray[1].ToObject<double>()));
Expand All @@ -71,7 +71,7 @@ public static IEnumerable<object[]> ChooseVariationTests()
{
foreach (JArray testCase in ((JArray)getStandardCases()["chooseVariation"]).Cast<JArray>())
{
List<BucketRange> ranges = [];
var ranges = new List<BucketRange>();
foreach (JArray jArray in testCase[2].Cast<JArray>())
{
ranges.Add(new BucketRange(jArray[0].ToObject<double>(), jArray[1].ToObject<double>()));
Expand Down

0 comments on commit eaa6708

Please sign in to comment.