Sha256: db55f0d4d944e4bd161b52aee2b42ae41dab0750d32f586c75ee6a625fa4c16a

Contents?: true

Size: 779 Bytes

Versions: 330

Compression:

Stored size: 779 Bytes

Contents

use "ponytest"

actor Main is TestList
  new create(env: Env) =>
    PonyTest(env, this)

  fun tag tests(test: PonyTest) =>
    test(_TestSquares)

class iso _TestSquares is UnitTest
  fun name(): String => "difference-of-squares/Squares"

  fun apply(h: TestHelper) =>
    h.assert_eq[USize](225, Squares.square_of_sums(5))
    h.assert_eq[USize](55, Squares.sum_of_squares(5))
    h.assert_eq[USize](170, Squares.difference(5))

    h.assert_eq[USize](3025, Squares.square_of_sums(10))
    h.assert_eq[USize](385, Squares.sum_of_squares(10))
    h.assert_eq[USize](2640, Squares.difference(10))

    h.assert_eq[USize](25502500, Squares.square_of_sums(100))
    h.assert_eq[USize](338350, Squares.sum_of_squares(100))
    h.assert_eq[USize](25164150, Squares.difference(100))

Version data entries

330 entries across 330 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.179 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.178 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.177 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.176 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.175 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.174 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.173 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.172 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.171 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.170 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.169 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.167 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.166 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.165 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.164 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.163 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.162 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.161 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.2.1.160 tracks/pony/exercises/difference-of-squares/test.pony