Use call-next-method

db4
Slava Pestov 2008-04-03 05:21:45 -05:00
parent 0041d2edae
commit 45cf030cbd
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@ smtp.server kernel sequences namespaces logging accessors
assocs sorting ;
IN: smtp.tests
[ t ] [
<email>
dup clone "a" "b" set-header drop
headers>> assoc-empty?
] unit-test
{ 0 0 } [ [ ] with-smtp-connection ] must-infer-as
[ "hello\nworld" validate-address ] must-fail

View File

@ -106,7 +106,7 @@ LOG: smtp-response DEBUG
TUPLE: email from to subject headers body ;
M: email clone
(clone) [ clone ] change-headers ;
call-next-method [ clone ] change-headers ;
: (send) ( email -- )
[