Sha256: 2c61ae1bbc9b785022509ef8931b2ff48999b92fc09dacb8a69327fece70c6b3

Contents?: true

Size: 633 Bytes

Versions: 194

Compression:

Stored size: 633 Bytes

Contents

-module(grains_tests).

-define(TESTED_MODULE, (sut(grains))).
-define(TEST_VERSION, 1).
-include("exercism.hrl").


-define(assertGrains(Grains, Square), ?assertMatch(Grains, ?TESTED_MODULE:square(Square))).

square_1_test() ->
  ?assertGrains(1, 1).

square_2_test() ->
  ?assertGrains(2, 2).

square_3_test() ->
  ?assertGrains(4, 3).

square_4_test() ->
  ?assertGrains(8, 4).

square_16_test() ->
  ?assertGrains(32768, 16).

square_32_test() ->
  ?assertGrains(2147483648, 32).

square_64_test() ->
  ?assertGrains(9223372036854775808, 64).

total_grains_test() ->
  ?assertMatch(18446744073709551615, ?TESTED_MODULE:total()).

Version data entries

194 entries across 194 versions & 1 rubygems

Version Path
trackler-2.2.1.62 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.61 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.60 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.59 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.58 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.57 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.56 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.55 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.54 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.53 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.52 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.51 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.50 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.49 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.48 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.47 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.46 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.45 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.44 tracks/erlang/exercises/grains/test/grains_tests.erl
trackler-2.2.1.43 tracks/erlang/exercises/grains/test/grains_tests.erl