Skip to content

Commit

Permalink
Moved stub and random out of utils, added copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Mar 5, 2009
1 parent 0767da0 commit 952b858
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/fact/output/verbose.clj
@@ -1,3 +1,15 @@
;; Copyright (c) James Reeves. All rights reserved.
;; The use and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which
;; can be found in the file epl-v10.html at the root of this distribution. By
;; using this software in any fashion, you are agreeing to be bound by the
;; terms of this license. You must not remove this notice, or any other, from
;; this software.

;; fact.output.verbose:
;;
;; Verbosely print the fact results to STDOUT.

(ns fact.output.verbose)

(defn- format-params
Expand Down
14 changes: 13 additions & 1 deletion src/fact/utils/random.clj → src/fact/random_utils.clj
@@ -1,4 +1,16 @@
(ns fact.utils.random)
;; Copyright (c) James Reeves. All rights reserved.
;; The use and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which
;; can be found in the file epl-v10.html at the root of this distribution. By
;; using this software in any fashion, you are agreeing to be bound by the
;; terms of this license. You must not remove this notice, or any other, from
;; this software.

;; fact.random-utils:
;;
;; Useful functions for creating random test data.

(ns fact.random-utils)

(defn random-int
"Generate a random integer, optionally in a specific range."
Expand Down
14 changes: 13 additions & 1 deletion src/fact/utils/stub.clj → src/fact/stub.clj
@@ -1,4 +1,16 @@
(ns fact.utils.stub)
;; Copyright (c) James Reeves. All rights reserved.
;; The use and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which
;; can be found in the file epl-v10.html at the root of this distribution. By
;; using this software in any fashion, you are agreeing to be bound by the
;; terms of this license. You must not remove this notice, or any other, from
;; this software.

;; fact.stub:
;;
;; Stub existing functions.

(ns fact.stub)

(defmacro stub
"Create function stubs for isolated unit tests.
Expand Down

0 comments on commit 952b858

Please sign in to comment.