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.2.1.180 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.179 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.178 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.177 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.176 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.175 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.174 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.173 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.172 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.171 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.170 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.169 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.167 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.166 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.165 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.164 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.163 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.162 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.161 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.160 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt