Sha256: 2960412df65f11f1cb8a5c3d9b714dd8ab4573047c3a74696ffd4886b8876740

Contents?: true

Size: 943 Bytes

Versions: 396

Compression:

Stored size: 943 Bytes

Contents

#lang racket/base

(require "raindrops.rkt")

(module+ test
  (require rackunit rackunit/text-ui)

  (define suite
    (test-suite
     "raindrops tests"

     (test-equal? "test-1" (convert 1) "1")
     (test-equal? "test-3" (convert 3) "Pling")
     (test-equal? "test-5" (convert 5) "Plang")
     (test-equal? "test-7" (convert 7) "Plong")
     (test-equal? "test-6" (convert 6) "Pling")
     (test-equal? "test-9" (convert 9) "Pling")
     (test-equal? "test-10" (convert 10) "Plang")
     (test-equal? "test-15" (convert 15) "PlingPlang")
     (test-equal? "test-21" (convert 21) "PlingPlong")
     (test-equal? "test-25" (convert 25) "Plang")
     (test-equal? "test-35" (convert 35) "PlangPlong")
     (test-equal? "test-49" (convert 49) "Plong")
     (test-equal? "test-52" (convert 52) "52")
     (test-equal? "test-105" (convert 105) "PlingPlangPlong")
     (test-equal? "test-12121" (convert 12121) "12121")))

  (run-tests suite))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.179 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.178 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.177 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.176 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.175 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.174 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.173 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.172 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.171 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.170 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.169 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.167 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.166 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.165 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.164 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.163 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.162 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.161 tracks/racket/exercises/raindrops/raindrops-test.rkt
trackler-2.2.1.160 tracks/racket/exercises/raindrops/raindrops-test.rkt