Skip to content

Commit d1ed74d

Browse files
fix: Floating-point numeric with dot
1 parent 70b77e5 commit d1ed74d

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Src/Gedaq/Gedaq.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public int GetHashCode((ImmutableArray<TypeDeclarationSyntax> Nodes, Compilation
5555

5656
public void Initialize(IncrementalGeneratorInitializationContext context)
5757
{
58-
System.Diagnostics.Debugger.Launch();
58+
//System.Diagnostics.Debugger.Launch();
5959

6060
var classDeclarations = context.SyntaxProvider
6161
.CreateSyntaxProvider(

Src/MSSQLTests/MSSQLTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
</None>
3131
</ItemGroup>
3232
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
33-
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net7.0&quot; &quot;MsSQL&quot; &quot;$(SolutionDir)Src\MSSQLTests&quot;" />
33+
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net8.0&quot; &quot;MsSQL&quot; &quot;$(SolutionDir)Src\MSSQLTests&quot;" />
3434
</Target>
3535
</Project>

Src/MySQLTests/MySQLTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
</None>
3131
</ItemGroup>
3232
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
33-
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net7.0&quot; &quot;MySQL&quot; &quot;$(SolutionDir)Src\MySQLTests&quot;" />
33+
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net8.0&quot; &quot;MySQL&quot; &quot;$(SolutionDir)Src\MySQLTests&quot;" />
3434
</Target>
3535
</Project>

Src/PostgreSQLTests/PostgreSQLTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
</None>
3131
</ItemGroup>
3232
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
33-
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net7.0&quot; &quot;PostgreSQL&quot; &quot;$(SolutionDir)Src\PostgreSQLTests&quot;" />
33+
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File &quot;$(ProjectDir)prebuild.ps1&quot; &quot;$(SolutionDir)Src\TestsGenerator\bin\$(ConfigurationName)\net8.0&quot; &quot;PostgreSQL&quot; &quot;$(SolutionDir)Src\PostgreSQLTests&quot;" />
3434
</Target>
3535
</Project>

Src/TestsGenerator/TypeValueHelpers/DecimalValueHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public override string NewSingleValue()
2222

2323
if(_round != -1)
2424
result = decimal.Round(result, _round);
25-
return $"{result}m";
25+
return $"{result.ToString(System.Globalization.CultureInfo.InvariantCulture)}m";
2626
}
2727
}
2828
}

Src/TestsGenerator/TypeValueHelpers/DoubleValueHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override ValueHelper NewInstance()
1717
public override string NewSingleValue()
1818
{
1919
var result = (double)Random.Shared.NextDouble();
20-
return $"{result}d";
20+
return $"{result.ToString(System.Globalization.CultureInfo.InvariantCulture)}d";
2121
}
2222
}
2323
}

Src/TestsGenerator/TypeValueHelpers/SingleValueHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public override ValueHelper NewInstance()
1818
public override string NewSingleValue()
1919
{
2020
var result = (float)Random.Shared.NextSingle();
21-
return $@"{result}f";
21+
return $@"{result.ToString(System.Globalization.CultureInfo.InvariantCulture)}f";
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)