Skip to content

Commit

Permalink
(test) Run more tests in compiled mode (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlun authored Feb 27, 2024
1 parent 873fd80 commit 9eda2e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions release-notes/v0.4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Use correct error message for unsupported operand types [[#421][421]]
- Support `**` for `BigInt` values [[#422][422]]
- Replace `BigInt` lib with `libtommath` implementation [[#425][425]]
- Run more tests in compiled mode [[#427][427]]

### Changed
#### Data types
Expand Down Expand Up @@ -55,3 +56,4 @@
[421]: https://github.com/perlang-org/perlang/pull/421
[422]: https://github.com/perlang-org/perlang/pull/422
[425]: https://github.com/perlang-org/perlang/pull/425
[427]: https://github.com/perlang-org/perlang/pull/427
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void exponential_multiple_times()
Assert.Equal(BigInteger.Parse("2037035976334486086268445688409378161051468393665936250636140449354381299763336706183397376"), result);
}

[SkippableFact]
[Fact]
public void exponential_integer_literal_and_function_return_value()
{
string source = @"
Expand All @@ -218,7 +218,7 @@ public void exponential_integer_literal_and_function_return_value()
Assert.Equal("65536", result);
}

[SkippableTheory]
[Theory]
[InlineData("2", "12", "4096", "sv-SE")]
[InlineData("2", "12", "4096", "en-US")]
[InlineData("10", "3.5", "3162.27766016838", "sv-SE")]
Expand All @@ -237,7 +237,7 @@ public async Task exponential_integer_literals_as_variable_initializer(string le
Assert.Equal(expectedResult, result);
}

[SkippableFact]
[Fact]
public void exponential_function_return_value_and_int_literal()
{
string source = @"
Expand All @@ -251,7 +251,7 @@ public void exponential_function_return_value_and_int_literal()
Assert.Equal("65536", result);
}

[SkippableFact]
[Fact]
public void exponential_int_variable_and_int_literal()
{
string source = @"
Expand All @@ -265,7 +265,7 @@ public void exponential_int_variable_and_int_literal()
Assert.Equal("256", result);
}

[SkippableFact]
[Fact]
public void exponential_function_return_values()
{
string source = @"
Expand Down
8 changes: 4 additions & 4 deletions src/Perlang.Tests.Integration/Typing/BigintTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Perlang.Tests.Integration.Typing
/// </summary>
public class BigintTests
{
[SkippableFact]
[Fact]
public void bigint_variable_can_be_printed()
{
string source = @"
Expand All @@ -23,7 +23,7 @@ public void bigint_variable_can_be_printed()
Assert.Equal("103", output);
}

[SkippableFact]
[Fact]
public void bigint_variable_can_be_reassigned()
{
string source = @"
Expand All @@ -38,7 +38,7 @@ public void bigint_variable_can_be_reassigned()
Assert.Equal("8589934592", result);
}

[SkippableFact]
[Fact]
public void bigint_variable_can_contain_numbers_larger_than_32_bits()
{
string source = @"
Expand All @@ -52,7 +52,7 @@ public void bigint_variable_can_contain_numbers_larger_than_32_bits()
Assert.Equal("8589934592", output);
}

[SkippableFact]
[Fact]
public void bigint_variable_can_contain_numbers_larger_than_64_bits()
{
string source = @"
Expand Down

0 comments on commit 9eda2e1

Please sign in to comment.