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.0.8.15 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.14 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.13 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.12 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.11 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.10 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.9 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.8 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.7 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.6 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.5 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.4 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.3 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.2 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.8.1 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.7.0 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.6.44 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.6.43 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.6.42 tracks/pony/exercises/difference-of-squares/test.pony
trackler-2.0.6.41 tracks/pony/exercises/difference-of-squares/test.pony