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.0.5 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.0.4 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.0.3 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.0.2 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.0.1 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.0.0.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.4.1 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.4.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.3.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.2.1 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.2.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.1.2 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.1.1 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.1.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.0.1 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-1.0.0 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt