Skip to content

Commit

Permalink
Added test case for issue #1147 containing large hex literals
Browse files Browse the repository at this point in the history
  • Loading branch information
gaschd committed Nov 4, 2024
1 parent 1338963 commit c24caeb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tests/CSharp/SpecialConversionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,25 @@ private string numstr(double aDouble)
}");
}

[Fact]
public async Task Issue1147_LargeNumericHexAndBinaryLiteralsAsync()
{
await TestConversionVisualBasicToCSharpAsync(
@"
Public Class Issue1147
Private Const LargeUInt As UInteger = &HFFFFFFFEUI
Private Const LargeULong As ULong = &HFFFFFFFFFFFFFFFEUL
Private Const LargeLong As Long = &HFFFFFFFFFFFFFFFEL
End Class", @"
public partial class Issue1147
{
private const uint LargeUInt = 0xFFFFFFFEU;
private const ulong LargeULong = 0xFFFFFFFFFFFFFFFEUL;
private const long LargeLong = 0xFFFFFFFFFFFFFFFEL;
}");
}


[Fact]
public async Task TestConstCharacterConversionsAsync()
{
Expand Down

0 comments on commit c24caeb

Please sign in to comment.