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.119 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.118 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.117 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.116 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.115 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.114 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.113 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.111 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.110 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.109 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.108 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.107 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.106 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.105 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.104 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.103 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.102 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.101 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.100 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt
trackler-2.2.1.99 tracks/racket/exercises/difference-of-squares/difference-of-squares-test.rkt