Sha256: 711208c5dfef85a5ad90864e6f0517f2ace586788956c27293c5a6430de230ae

Contents?: true

Size: 379 Bytes

Versions: 12

Compression:

Stored size: 379 Bytes

Contents

(examples-for tuples
  ("returns nil for nil"
   (tuples 3 nil)
   nil)

  ("returns single list for fewer than n items"
   (tuples 4 '(a b) )
   ((a b)))

  ("returns exactly one list for exactly n items"
   (tuples 5 '(a b c d e) )
   ((a b c d e)))

  ("returns the given list split into sublist each having n items"
   (tuples 3 '(a b c d e f g) )
   ((a b c) (d e f) (g))))

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nydp-0.6.0 lib/lisp/tests/tuples-examples.nydp
nydp-0.5.1 lib/lisp/tests/tuples-examples.nydp
nydp-0.5.0 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.6 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.5 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.3 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.2 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.1 lib/lisp/tests/tuples-examples.nydp
nydp-0.4.0 lib/lisp/tests/tuples-examples.nydp
nydp-0.3.0 lib/lisp/tests/tuples-examples.nydp
nydp-0.2.6 lib/lisp/tests/tuples-examples.nydp
nydp-0.2.5 lib/lisp/tests/tuples-examples.nydp