Skip to content

Commit

Permalink
Improve coverage of big.c
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Mar 5, 2025
1 parent 74fcab9 commit 4d5dcf0
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 1 deletion.
6 changes: 6 additions & 0 deletions erts/emulator/test/big_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
-export([all/0, suite/0, groups/0]).

-export([t_div/1, eq_28/1, eq_32/1, eq_big/1, eq_math/1, eq_big_mul_div/1,
eq_big_rem/1,
big_literals/1, borders/1, negative/1, karatsuba/1,
big_float_1/1, big_float_2/1,
bxor_2pow/1, band_2pow/1,
Expand All @@ -44,6 +45,7 @@ suite() ->

all() ->
[t_div, eq_28, eq_32, eq_big, eq_math, eq_big_mul_div,
eq_big_rem,
big_literals, borders, negative, karatsuba,
{group, big_float}, shift_limit_1,
bxor_2pow, band_2pow,
Expand Down Expand Up @@ -84,6 +86,10 @@ eq_big_mul_div(Config) when is_list(Config) ->
TestFile = test_file(Config, ?FUNCTION_NAME),
test(TestFile).

eq_big_rem(Config) when is_list(Config) ->
TestFile = test_file(Config, ?FUNCTION_NAME),
test(TestFile).

%% Tests border cases between small/big.
borders(Config) when is_list(Config) ->
TestFile = test_file(Config, ?FUNCTION_NAME),
Expand Down
2 changes: 1 addition & 1 deletion erts/emulator/test/big_SUITE_data/eq_big.dat
Original file line number Diff line number Diff line change
Expand Up @@ -13002,4 +13002,4 @@
0 = 7153697524993 bsr 475833444444444444444444444444444444444444444444.
-1 = -83987348 bsr 475833444444444444444444444444444444444444444444.
0 = 1183140560213014108063589658350 bsr 146783911423364576743092537299333564210980159306769991919205685720763064069663027716481187399048043939495935.

-154689446313964861416 = -154689163167641847368 band -932212679373733.
Loading

0 comments on commit 4d5dcf0

Please sign in to comment.