-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a blob value / type and tests #2097
base: main
Are you sure you want to change the base?
Conversation
Public API changes: |
Issue #1725. |
|
||
public override string ToString() | ||
{ | ||
return "o"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var evaluator = _engine.Check("Set(b, BlobCreation(\"myid\"))", opts, _symbolTable).GetEvaluator(); | ||
var result = await evaluator.EvalAsync(default, _runtimeConfig).ConfigureAwait(false); | ||
|
||
// Set() returns constant 'true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
evaluator = _engine.Check("b", opts, _symbolTable).GetEvaluator(); | ||
result = await evaluator.EvalAsync(default, _runtimeConfig).ConfigureAwait(false); | ||
var blobValue = result as BlobValue; | ||
Assert.NotNull(blobValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super nit: can we just cast? Then we'll get a more meaningful exception?
|
||
namespace Microsoft.PowerFx.Types | ||
{ | ||
public class BlobValue : PrimitiveValue<string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we extend IValueVisitor to include BlobValue? |
No description provided.