зеркало из https://github.com/microsoft/Power-Fx.git
Fix 'in' (#458)
This commit is contained in:
Родитель
a079e229bc
Коммит
e4f137b2d0
|
@ -419,7 +419,7 @@ namespace Microsoft.PowerFx.Functions
|
|||
|
||||
if (!exact && rhs is StringValue strRhs)
|
||||
{
|
||||
right = strRhs.ToLower();
|
||||
rhs = strRhs.ToLower();
|
||||
}
|
||||
|
||||
if (RuntimeHelpers.AreEqual(left, rhs))
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
<PackageReference Include="System.Text.Json" Version="5.0.2" />
|
||||
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.4" />
|
||||
<PackageReference Include="Microsoft.PowerFx.Core" Condition=" '$(ReleasePackageVersion)' == '' " Version="$(LocalPackageVersion)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -82,3 +82,27 @@ true
|
|||
|
||||
>> "'" in "SQL literal '"
|
||||
true
|
||||
|
||||
>> "Jane" in ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "John" in ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "JANE" in ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "jOHN" in ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "Jane" exactin ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "John" exactin ["Jane", "John"]
|
||||
true
|
||||
|
||||
>> "JANE" exactin ["Jane", "John"]
|
||||
false
|
||||
|
||||
>> "jOHN" exactin ["Jane", "John"]
|
||||
false
|
||||
|
|
Загрузка…
Ссылка в новой задаче