Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lesaltzm committed Nov 14, 2024
1 parent 909a83b commit 2b6146a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libraries/Microsoft.PowerFx.Core/Public/CheckResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ public CheckContextSummary ApplyGetContextSummary()
var summary = new CheckContextSummary
{
AllowsSideEffects = allowSideEffects,
IsPreV1Semantics = isV1,
IsPreV1Semantics = !isV1,
ExpectedReturnType = this._expectedReturnTypes,
SuggestedSymbols = symbolEntries
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Microsoft.PowerFx
{
[ThreadSafeImmutable]
public sealed class Features
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ public class AsTypeIsTypeParseJSONTests
{
private RecalcEngine SetupEngine(bool udtFeaturedEnabled = true)
{
var config = new PowerFxConfig();
var features = new Features(Features.PowerFxV1)
{
IsUserDefinedTypesEnabled = udtFeaturedEnabled,
};
var config = new PowerFxConfig(features);
config.EnableJsonFunctions();
config.Features.IsUserDefinedTypesEnabled = udtFeaturedEnabled;
return new RecalcEngine(config);
}

Expand Down

0 comments on commit 2b6146a

Please sign in to comment.