зеркало из https://github.com/microsoft/Power-Fx.git
RecordOf UDF test
This commit is contained in:
Родитель
36bac28519
Коммит
079cc00f75
|
@ -1889,7 +1889,7 @@ namespace Microsoft.PowerFx.Tests
|
|||
hasNoAge(e: Employee): Number = IsBlank(getAge(e));",
|
||||
"hasNoAge({Name: \"Bob\", Title: \"CEO\"})",
|
||||
true,
|
||||
1.0)]
|
||||
1.0)]
|
||||
|
||||
// Types with UDF restricted primitive types resolve successfully
|
||||
[InlineData(
|
||||
|
@ -2049,6 +2049,13 @@ namespace Microsoft.PowerFx.Tests
|
|||
true,
|
||||
1.0)]
|
||||
|
||||
// No error on a UDF named RecordOf
|
||||
[InlineData(
|
||||
@"RecordOf(x:Number): Number = x + 1;",
|
||||
"RecordOf(41)",
|
||||
true,
|
||||
42.0)]
|
||||
|
||||
// Fails for anyother type other than table
|
||||
[InlineData(
|
||||
"Account := Type(RecordOf(SomeRecord));",
|
||||
|
|
Загрузка…
Ссылка в новой задаче