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.139 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.138 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.137 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.136 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.135 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.134 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.133 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.132 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.131 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.130 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.129 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.128 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.127 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.126 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.125 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.124 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.123 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.122 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.121 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.120 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt