Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(tests) Add full type coverage for ** operator #323

Merged
merged 1 commit into from
Apr 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions release-notes/v0.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Add full type coverage for `==` and `!=` operators [[#320][320]]
- Add full type coverage for `<` and `<=` operators [[#321][321]]
- Add full type coverage for `>` and `>=` operators [[#322][322]]
- Add full type coverage for `**` operator [[#323][323]]

[300]: https://github.com/perlang-org/perlang/pull/300
[302]: https://github.com/perlang-org/perlang/issues/302
Expand All @@ -27,3 +28,4 @@
[319]: https://github.com/perlang-org/perlang/pull/319
[321]: https://github.com/perlang-org/perlang/pull/321
[322]: https://github.com/perlang-org/perlang/pull/322
[323]: https://github.com/perlang-org/perlang/pull/323
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,35 @@ public static class BinaryOperatorData
new object[] { "2.1", "10", "Unsupported ** operands specified: double and int" },
new object[] { "4294967296", "4294967296", "Unsupported ** operands specified: long and long" },
new object[] { "10.0", "4294967296", "Unsupported ** operands specified: double and long" },
new object[] { "18446744073709551616", "18446744073709551616", "Unsupported ** operands specified: bigint and bigint" }
new object[] { "18446744073709551616", "18446744073709551616", "Unsupported ** operands specified: bigint and bigint" },

new object[] { "2", "4294967295", "Unsupported ** operands specified: int and System.UInt32" },
new object[] { "2", "9223372036854775807", "Unsupported ** operands specified: int and long" },
new object[] { "2", "18446744073709551615", "Unsupported ** operands specified: int and System.UInt64" },
new object[] { "2", "18446744073709551616", "Unsupported ** operands specified: int and bigint" },
new object[] { "4294967295", "33", "Unsupported ** operands specified: System.UInt32 and int" },
new object[] { "4294967295", "4294967295", "Unsupported ** operands specified: System.UInt32 and System.UInt32" },
new object[] { "4294967295", "9223372036854775807", "Unsupported ** operands specified: System.UInt32 and long" },
new object[] { "4294967295", "18446744073709551615", "Unsupported ** operands specified: System.UInt32 and System.UInt64" },
new object[] { "4294967295", "18446744073709551616", "Unsupported ** operands specified: System.UInt32 and bigint" },
new object[] { "4294967295", "12.0", "Unsupported ** operands specified: System.UInt32 and double" },
new object[] { "9223372036854775807", "4294967295", "Unsupported ** operands specified: long and System.UInt32" },
new object[] { "9223372036854775807", "18446744073709551615", "Unsupported ** operands specified: long and System.UInt64" },
new object[] { "9223372036854775807", "18446744073709551616", "Unsupported ** operands specified: long and bigint" },
new object[] { "18446744073709551615", "2", "Unsupported ** operands specified: System.UInt64 and int" },
new object[] { "18446744073709551615", "4294967295", "Unsupported ** operands specified: System.UInt64 and System.UInt32" },
new object[] { "18446744073709551615", "9223372036854775807", "Unsupported ** operands specified: System.UInt64 and long" },
new object[] { "18446744073709551615", "18446744073709551615", "Unsupported ** operands specified: System.UInt64 and System.UInt64" },
new object[] { "18446744073709551615", "18446744073709551616", "Unsupported ** operands specified: System.UInt64 and bigint" },
new object[] { "18446744073709551615", "12.0", "Unsupported ** operands specified: System.UInt64 and double" },
new object[] { "18446744073709551616", "4294967295", "Unsupported ** operands specified: bigint and System.UInt32" },
new object[] { "18446744073709551616", "9223372036854775807", "Unsupported ** operands specified: bigint and long" },
new object[] { "18446744073709551616", "18446744073709551615", "Unsupported ** operands specified: bigint and System.UInt64" },
new object[] { "18446744073709551616", "12.0", "Unsupported ** operands specified: bigint and double" },
new object[] { "-12.0", "4294967295", "Unsupported ** operands specified: double and System.UInt32" },
new object[] { "-12.0", "9223372036854775807", "Unsupported ** operands specified: double and long" },
new object[] { "-12.0", "18446744073709551615", "Unsupported ** operands specified: double and System.UInt64" },
new object[] { "-12.0", "18446744073709551616", "Unsupported ** operands specified: double and bigint" },
};

public static IEnumerable<object[]> Modulo_result =>
Expand Down