Sha256: 77835e02168650baf3e61088f9784070dcd17ad2d39179efa3ccfdea34fc3349
Contents?: true
Size: 706 Bytes
Versions: 396
Compression:
Stored size: 706 Bytes
Contents
#lang racket/base (require "perfect-numbers.rkt") (module+ test (require rackunit rackunit/text-ui) (define suite (test-suite "perfect numbers tests" (test-equal? "no perfect numbers in 1 - 5" (perfect-numbers 5) '()) (test-equal? "return one perfect number for range 1 - 6" (perfect-numbers 6) '(6)) (test-equal? "return 3 perfect numbers for range 1 - 1000" (perfect-numbers 1000) '(6 28 496)) (test-equal? "return 4 perfect numbers for range 1 - 10000" (perfect-numbers 10000) '(6 28 496 8128)))) (run-tests suite))
Version data entries
396 entries across 396 versions & 1 rubygems