Sha256: 10a75570f6c89ce9888546332e9c7fcc2aa769e603386581e880b3161b027392

Contents?: true

Size: 785 Bytes

Versions: 53

Compression:

Stored size: 785 Bytes

Contents

(ql:quickload "lisp-unit")

(defpackage #:grains-test
  (:use #:cl #:lisp-unit))

#-xlisp-test (load "grains")

(in-package #:grains-test)

(define-test square-1
  (assert-equal 1 (grains:square 1)))

(define-test square-2
  (assert-equal 2 (grains:square 2)))

(define-test square-3
  (assert-equal 4 (grains:square 3)))

(define-test square-4
  (assert-equal 8 (grains:square 4)))

(define-test square-16
  (assert-equal 32768 (grains:square 16)))

(define-test square-32
  (assert-equal 2147483648 (grains:square 32)))

(define-test square-64
  (assert-equal 9223372036854775808 (grains:square 64)))

(define-test total-grains
  (assert-equal 18446744073709551615  (grains:total)))

#-xlisp-test
(let ((*print-errors* t)
      (*print-failures* t))
  (run-tests :all :grains-test))

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
trackler-2.0.5.16 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.15 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.14 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.13 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.12 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.11 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.10 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.9 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.8 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.7 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.6 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.5 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.4 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.3 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.2 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.1 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.5.0 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.4.0 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.3.9 tracks/lisp/exercises/grains/grains-test.lisp
trackler-2.0.3.8 tracks/lisp/exercises/grains/grains-test.lisp