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