X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FCidr.hs;h=5c9fefd66e6714c5a6eeeb62718ccffd668345b8;hb=0be56eaa64ab03adf3aa1f3f3c14a191c09045c8;hp=7bb3ac2c41229b286f67f39a8ce58c24274171b7;hpb=6257f1c59c5c9663f8d95996c1c35362417def71;p=hath.git diff --git a/src/Cidr.hs b/src/Cidr.hs index 7bb3ac2..5c9fefd 100644 --- a/src/Cidr.hs +++ b/src/Cidr.hs @@ -2,7 +2,8 @@ module Cidr ( Cidr(..), cidr_from_string, cidr_tests, - combine_all + combine_all, + prop_all_cidrs_contain_themselves ) where import Data.List (nubBy) @@ -289,3 +290,9 @@ cidr_tests = [ test_equality1, test_combine_contained1, test_combine_contained2 ] + + +-- QuickCheck Tests +prop_all_cidrs_contain_themselves :: Cidr -> Bool +prop_all_cidrs_contain_themselves cidr1 = cidr1 `contains` cidr1 +