diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/whatmask.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/whatmask.rb b/Library/Formula/whatmask.rb index 247a4714d..9e15e0f54 100644 --- a/Library/Formula/whatmask.rb +++ b/Library/Formula/whatmask.rb @@ -11,4 +11,19 @@ class Whatmask < Formula "--prefix=#{prefix}" system "make install" end + + def test + %x[#{bin}/whatmask /24].eql? <<-EOS + +--------------------------------------------- + TCP/IP SUBNET MASK EQUIVALENTS +--------------------------------------------- +CIDR = .....................: /24 +Netmask = ..................: 255.255.255.0 +Netmask (hex) = ............: 0xffffff00 +Wildcard Bits = ............: 0.0.0.255 +Usable IP Addresses = ......: 254 + +EOS + end end |
