Skip to content

Commit

Permalink
Apply mix formatting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Aug 30, 2023
1 parent 08a249e commit a590181
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/jumper_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ defmodule JumperTest do

# compiled from various other libraries
test_cases = [
{ 0, 1, 0 },
{ 3, 1, 0 },
{ 0, 2, 0 },
{ 4, 2, 1 },
{ 7, 2, 0 },
{ 1, 1, 0 },
{ 42, 57, 43 },
{ 1, 128, 55 },
{ 129, 128, 120 },
{ 256, 1024, 520 },
{ 0xDEAD10CC, 1, 0 },
{ 0xDEAD10CC, 666, 361 },
{ 128, 100000000, 38172097 },
{ 128, 2147483648, 1644467860 },
{ 18446744073709551615, 128, 92 },
{ 0xA9993E364706816ABA3E25717850C26C9CD0D89D, 5, 2 },
{0, 1, 0},
{3, 1, 0},
{0, 2, 0},
{4, 2, 1},
{7, 2, 0},
{1, 1, 0},
{42, 57, 43},
{1, 128, 55},
{129, 128, 120},
{256, 1024, 520},
{0xDEAD10CC, 1, 0},
{0xDEAD10CC, 666, 361},
{128, 100_000_000, 38_172_097},
{128, 2_147_483_648, 1_644_467_860},
{18_446_744_073_709_551_615, 128, 92},
{0xA9993E364706816ABA3E25717850C26C9CD0D89D, 5, 2}
]

# create a test cases for all defined above
for { key, slots, expected } <- test_cases do
for {key, slots, expected} <- test_cases do
test "slot(#{key}, #{slots}) == #{expected}" do
assert Jumper.slot(unquote(key), unquote(slots)) == unquote(expected)
end
Expand Down

0 comments on commit a590181

Please sign in to comment.