Skip to content

Commit

Permalink
♻️ fix uninternalised file
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffynuts committed Apr 16, 2024
1 parent 71e0fb7 commit 055f8aa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions source/TestUtils/PeanutButter.RandomGenerators/RandomValueGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using System.Linq.Expressions;
using System.Net;
using System.Reflection;
using PeanutButter.Utils;
using static PeanutButter.Utils.PyLike;
// ReSharper disable ConstantNullCoalescingCondition

// ReSharper disable UnusedAutoPropertyAccessor.Local
Expand All @@ -20,8 +18,14 @@
// ReSharper disable ClassNeverInstantiated.Global

#if BUILD_PEANUTBUTTER_INTERNAL
using Imported.PeanutButter.Utils;
using static Imported.PeanutButter.Utils.PyLike;

namespace Imported.PeanutButter.RandomGenerators;
#else
using PeanutButter.Utils;
using static PeanutButter.Utils.PyLike;

namespace PeanutButter.RandomGenerators;
#endif

Expand Down Expand Up @@ -2605,7 +2609,7 @@ public static T GetAnother<T>(
{
shouldRegenerateIf = shouldRegenerateIf ?? DefaultEqualityTest;
return GetANewRandomValueUsing(differentFromThisValue, usingThisGenerator, IsANewValue);

bool IsANewValue(T o) => !shouldRegenerateIf(differentFromThisValue, o);
}

Expand Down

0 comments on commit 055f8aa

Please sign in to comment.