Sha256: ecaf358c4beb2c9673622d23c8a1d4d580fe12fc21af82320772cb3cdeef4360

Contents?: true

Size: 788 Bytes

Versions: 396

Compression:

Stored size: 788 Bytes

Contents

#lang racket/base

(require "difference-of-squares.rkt")

(module+ test
  (require rackunit rackunit/text-ui)

  (define suite
    (test-suite
     "difference of squares"

     (test-eqv? "square-of-sums-to-5" (square-of-sums 5) 225)
     (test-eqv? "sum-of-squares-to-5" (sum-of-squares 5) 55)
     (test-eqv? "difference of-sums-to-5" (difference 5) 170)
     (test-eqv? "square-of-sums-to-10" (square-of-sums 10) 3025)
     (test-eqv? "sum-of-squares-to-10"  (sum-of-squares 10) 385)
     (test-eqv? "difference of-sums-to-10" (difference 10) 2640)
     (test-eqv? "square-of-sums-to-100" (square-of-sums 100) 25502500)
     (test-eqv? "sum-of-squares-to-100" (sum-of-squares 100) 338350)
     (test-eqv? "difference of-sums-to-100" (difference 100) 25164150)))

  (run-tests suite))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.0.6.40 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.39 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.38 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.37 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.36 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.35 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.34 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.33 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.32 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.31 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.30 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.29 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.28 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.27 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.26 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.25 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.24 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.23 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.22 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.6.21 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt