Sha256: 8c54fa9efb0ffa6eda1a72656ba66174605a1d8c6ea7ea1a22478f1ad1328e2f
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 Bytes
Contents
# -*- coding: utf-8 -*- require 'test/unit' require 'sixarm_ruby_email_address_validation' require 'simplecov' SimpleCov.start class Testing < Test::Unit::TestCase include EmailAddressValidation def test_pattern_success assert_equal(0,EMAIL_ADDRESS_PATTERN=~'foo@bar.com') end def test_pattern_failure assert_equal(nil,EMAIL_ADDRESS_PATTERN=~'foo') end def test_pattern_chaff_success assert_equal(4,EMAIL_ADDRESS_PATTERN=~'... foo@bar.com ...') end def test_pattern_chaff_failure assert_equal(nil,EMAIL_ADDRESS_PATTERN=~'... foo ...') end def test_exact_pattern_success assert_equal(0,EMAIL_ADDRESS_EXACT_PATTERN=~'foo@bar.com') end def test_exact_pattern_failure_due_to_left_chaff assert_equal(nil,EMAIL_ADDRESS_EXACT_PATTERN=~'... foo@bar.com') end def test_exact_pattern_failure_due_to_right_chaff assert_equal(nil,EMAIL_ADDRESS_EXACT_PATTERN=~'foo@bar.com ...') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_email_address_validation-1.2.2 | test/sixarm_ruby_email_address_validation_test.rb |