projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r11023: 2006-08-13 Kevin Rosenberg (kevin@rosenberg.net)
[uffi.git]
/
tests
/
casts.lisp
diff --git
a/tests/casts.lisp
b/tests/casts.lisp
index 4e19cfd33b1b854760631defcc2d173575e11e37..f6bf4d4fca48280c8e170f86c3c7f5a5f0d308a9 100644
(file)
--- a/
tests/casts.lisp
+++ b/
tests/casts.lisp
@@
-1,13
+1,15
@@
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
-;;;; FILE IDENTIFICA
T
ION
+;;;; FILE IDENTIFICAION
;;;;
;;;;
-;;;; Name: casts
+;;;; Name: casts
.lisp
;;;; Purpose: Tests of with-cast-pointer
;;;; Programmer: Kevin M. Rosenberg / Edi Weitz
;;;; Date Started: Aug 2003
;;;;
;;;; Purpose: Tests of with-cast-pointer
;;;; Programmer: Kevin M. Rosenberg / Edi Weitz
;;;; Date Started: Aug 2003
;;;;
-;;;; $Id: casts.lisp,v 1.1 2003/08/14 19:35:05 kevin Exp $
+;;;; $Id$
+;;;;
+;;;; This file, part of UFFI, is Copyright (c) 2003-2005 by Kevin M. Rosenberg
;;;;
;;;; *************************************************************************
;;;;
;;;; *************************************************************************
@@
-15,13
+17,15
@@
(uffi:def-function ("cast_test_int" cast-test-int)
()
(uffi:def-function ("cast_test_int" cast-test-int)
()
+ :module "uffi_tests"
:returning :pointer-void)
(uffi:def-function ("cast_test_float" cast-test-float)
()
:returning :pointer-void)
(uffi:def-function ("cast_test_float" cast-test-float)
()
+ :module "uffi_tests"
:returning :pointer-void)
:returning :pointer-void)
-(deftest cast.1
+(deftest
:
cast.1
(progn
(uffi:with-cast-pointer (temp (cast-test-int) :int)
(assert (= (uffi:deref-pointer temp :int) 23)))
(progn
(uffi:with-cast-pointer (temp (cast-test-int) :int)
(assert (= (uffi:deref-pointer temp :int) 23)))
@@
-33,7
+37,7
@@
t)
t)
t)
t)
-(deftest cast.2
+(deftest
:
cast.2
(progn
(uffi:with-cast-pointer (temp (cast-test-float) :double)
(assert (= (uffi:deref-pointer temp :double) 3.21d0)))
(progn
(uffi:with-cast-pointer (temp (cast-test-float) :double)
(assert (= (uffi:deref-pointer temp :double) 3.21d0)))