Skip to content

Commit

Permalink
The "alias" should not be equal to the "recipient" #272
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Mar 13, 2024
1 parent 54a1c2f commit 9cf891f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/public/lhost-code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def enginetest(enginename = nil, isexpected = {}, privateset = false, onlydebugs

assert_instance_of String, cv
refute_nil cv, sprintf("%s %s", ct, cv)
refute_equal cv, rr.recipient.address, sprintf("%s %s != %s", ct, cv, rr.recipient.address)

# ---------------------------------------------------------------------------------------
# CATCH
Expand Down Expand Up @@ -256,7 +257,7 @@ def enginetest(enginename = nil, isexpected = {}, privateset = false, onlydebugs
# ---------------------------------------------------------------------------------------
# LHOST
cv = rr.lhost
cr = %r/\A[\x21-\x7e]+\z/
cr = %r/\A[^\s\[\]\(\)]+\z/
ct = sprintf("%s [%s-%02d] #lhost =", ce, e, errorindex)

assert_instance_of String, cv
Expand Down Expand Up @@ -339,7 +340,7 @@ def enginetest(enginename = nil, isexpected = {}, privateset = false, onlydebugs
# ---------------------------------------------------------------------------------------
# RHOST
cv = rr.rhost
cr = %r/\A[-.:0-9A-Za-z]+\z/
cr = %r/\A[^\s\[\]\(\)]+\z/
ct = sprintf("%s [%s-%02d] #rhost =", ce, e, errorindex)

assert_instance_of String, cv
Expand Down

0 comments on commit 9cf891f

Please sign in to comment.