COM test updates

This commit is contained in:
Matthew Flatt 2012-07-26 12:50:20 -06:00
parent 8ba976c035
commit b208a104ec
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@
(define-syntax-rule (test expect expr)
(let ([val expr]
[ex expect])
(printf "~s\n" 'expr)
(unless (equal? ex val)
(error 'test "~s failed: ~e" 'expr val))
(set! count (add1 count))))
@ -71,7 +72,7 @@
(define doc (com-get-property ie "Document"))
(test #t (com-object? doc))
(test "Racket" (com-get-property ie "Document" "title"))
(test "The Racket Language" (com-get-property ie "Document" "title"))
(test (void) (com-set-property! ie "Document" "title" "The Racket Documentation"))
(test "The Racket Documentation" (com-get-property ie "Document" "title"))
(test '(-> string) (com-get-property-type doc "title"))

View File

@ -7,6 +7,7 @@
(define-syntax-rule (test expect expr)
(let ([val expr]
[ex expect])
(printf "~s\n" 'expr)
(unless (equal? ex val)
(error 'test "~s failed: ~e" 'expr val))
(set! count (add1 count))))
@ -126,7 +127,7 @@
(define doc (com-get-property ie "Document"))
(test #t (com-object? doc))
(test "Racket" (com-get-property ie "Document" "title"))
(test "The Racket Language" (com-get-property ie "Document" "title"))
(test (void) (com-set-property! ie "Document" "title" "The Racket Documentation"))
(test "The Racket Documentation" (com-get-property ie "Document" "title"))
(test '(-> () string) (com-get-property-type doc "title"))