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