(ns riemann.test.common
  (:use riemann.common)
  (:use clojure.test))

(ns riemann.test.common
  (:use riemann.common)
  (:use clojure.test))

(deftest subset-test
         (are [a b] (subset? a b)
              []    []
              []    [1 2 3]
              [1]   [1]
              [1]   [2 1 3]
              [1 2] [1 2 3]
              [1 2] [2 3 1])
         
         (are [a b] (not (subset? a b))
              [1]   []
              [1 2] [1]
              [1]   [2]
              [1]   [2 3]
              [1 2] [1 3]
              [1 2] [3 1]))

(deftest overlap-test
         (are [a b] (overlap? a b)
              [1 2] [1]
              [1]   [1]
              [1 2] [2 3]
              [3 2] [1 3]
              [1 3] [3 1])
         
         (are [a b] (not (overlap? a b))
              []     []
              [1]    []
              [1]    [2]
              [3]    [1 2]
              [1 2]  [3 4]))

(deftest disjoint-test
         (are [a b] (disjoint? a b)
              []     []
              [1]    []
              [1]    [2]
              [3]    [1 2]
              [1 2]  [3 4])
         
         (are [a b] (not (disjoint? a b))
              [1 2] [1]
              [1]   [1]
              [1 2] [2 3]
              [3 2] [1 3]
              [1 3] [3 1]))

Revert "kill tests for funcs that do not exist anymore"
Revert "kill tests for funcs that do not exist anymore"

This reverts commit 70c3caf8b047080f759713cb4085c64af893e0c0.

rhysr/riemann,joerayme/riemann,ClodoCorp/riemann,vincentbernat/riemann,yeller/riemann,vixns/riemann,forter/riemann,counsyl/riemann,robashton/riemann,forter/riemann,DasAllFolks/riemann,twosigma/riemann,LubyRuffy/riemann,yeller/riemann,spazm/riemann,aphyr/riemann,twosigma/riemann,cswaroop/riemann,shokunin/riemann,counsyl/riemann,irudyak/riemann,zamaterian/riemann,alq666/riemann,LubyRuffy/riemann,shokunin/riemann,mirwan/riemann,rekhajoshm/riemann,Anvil/riemann,jamtur01/riemann,forter/riemann,tzach/riemann,ClodoCorp/riemann,Anvil/riemann,cswaroop/riemann,eric/riemann,aphyr/riemann,mfournier/riemann,ClodoCorp/riemann,udoprog/riemann,VideoAmp/riemann-1,fullcontact/riemann,algernon/riemann,stanislas/riemann,micrub/riemann,vixns/riemann,lispmeister/riemann,cswaroop/riemann,jamtur01/riemann,hugoduncan/riemann,pyr/riemann,tzach/riemann,twosigma/riemann,bmhatfield/riemann,fullcontact/riemann,algernon/riemann,mirwan/riemann,pyr/riemann,moonranger/riemann,shokunin/riemann,hugoduncan/riemann,patrickod/riemann,bg451/riemann,lispmeister/riemann,rekhajoshm/riemann,udoprog/riemann,vincentbernat/riemann,jeanpralo/riemann,patrox/riemann,bg451/riemann,stanislas/riemann,nberger/riemann,topecz/riemann,VideoAmp/riemann-1,micrub/riemann,AkihiroSuda/riemann,timbuchwaldt/riemann,zamaterian/riemann,riemann/riemann,udoprog/riemann,bmhatfield/riemann,rekhajoshm/riemann,abailly/riemann,rhysr/riemann,robashton/riemann,fullcontact/riemann,nberger/riemann,bfritz/riemann,patrox/riemann,topecz/riemann,stanislas/riemann,tzach/riemann,pradeepchhetri/riemann,abailly/riemann,moonranger/riemann,alq666/riemann,patrox/riemann,nelhage/riemann,mbuczko/riemann,lispmeister/riemann,bwilber/riemann,irudyak/riemann,bfritz/riemann,pradeepchhetri/riemann,mfournier/riemann,bwilber/riemann,spazm/riemann,nelhage/riemann,AkihiroSuda/riemann,micrub/riemann,hugoduncan/riemann,algernon/riemann,mbuczko/riemann,DasAllFolks/riemann,joerayme/riemann,topecz/riemann,riemann/riemann,yeller/riemann,mfournier/riemann,mirwan/riemann,patrickod/riemann,rhysr/riemann,nelhage/riemann,bowlofstew/riemann,bowlofstew/riemann,pharaujo/riemann,pharaujo/riemann,timbuchwaldt/riemann,patrickod/riemann,jeanpralo/riemann,eric/riemann