X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fcasts.lisp;h=f6bf4d4fca48280c8e170f86c3c7f5a5f0d308a9;hb=c4533c02d3f2ebd53178c93de2dee09ca39fe0e7;hp=ae5ece40dafb0483a6be2c9389f77bfe876e2e79;hpb=db166e2970e1aaabd611e243eb899ae4d2f5f5ff;p=uffi.git diff --git a/tests/casts.lisp b/tests/casts.lisp index ae5ece4..f6bf4d4 100644 --- a/tests/casts.lisp +++ b/tests/casts.lisp @@ -1,13 +1,15 @@ ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* -;;;; FILE IDENTIFICATION +;;;; FILE IDENTIFICAION ;;;; ;;;; Name: casts.lisp ;;;; Purpose: Tests of with-cast-pointer ;;;; Programmer: Kevin M. Rosenberg / Edi Weitz ;;;; Date Started: Aug 2003 ;;;; -;;;; $Id: casts.lisp,v 1.2 2003/08/14 21:40:13 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) () + :module "uffi_tests" :returning :pointer-void) (uffi:def-function ("cast_test_float" cast-test-float) () + :module "uffi_tests" :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))) @@ -33,7 +37,7 @@ 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)))