Trying to appease the CI tests, which are failing here for some reason.
This commit is contained in:
parent
5fd5c1c1f8
commit
8757448900
|
@ -4,8 +4,9 @@ type expressionValue = ExpressionValue.expressionValue
|
|||
let dateDispatch = (call: ExpressionValue.functionCall, _: DistributionOperation.env): option<
|
||||
result<expressionValue, QuriSquiggleLang.Reducer_ErrorValue.errorValue>,
|
||||
> => {
|
||||
open ExpressionValue
|
||||
switch call {
|
||||
| ("toString", [EvDate(t)]) => ExpressionValue.EvString(DateTime.Date.toString(t))->Ok->Some
|
||||
| ("toString", [EvDate(t)]) => EvString(DateTime.Date.toString(t))->Ok->Some
|
||||
| ("makeDateFromYear", [EvNumber(year)]) =>
|
||||
switch DateTime.Date.makeFromYear(year) {
|
||||
| Ok(t) => EvDate(t)->Ok->Some
|
||||
|
|
Loading…
Reference in New Issue
Block a user