X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fcasts.lisp;h=f6bf4d4fca48280c8e170f86c3c7f5a5f0d308a9;hb=cc7b3da48f78a00cf62737f447ef9fe05a79bc37;hp=da4bfa5d747c65e3644f9ccc179c24b93d9fba5b;hpb=7004c2691d5695471c7bce9d62b82a1914cf05a2;p=uffi.git diff --git a/tests/casts.lisp b/tests/casts.lisp index da4bfa5..f6bf4d4 100644 --- a/tests/casts.lisp +++ b/tests/casts.lisp @@ -1,6 +1,6 @@ ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* -;;;; FILE IDENTIFICATION +;;;; FILE IDENTIFICAION ;;;; ;;;; Name: casts.lisp ;;;; Purpose: Tests of with-cast-pointer @@ -9,21 +9,23 @@ ;;;; ;;;; $Id$ ;;;; +;;;; This file, part of UFFI, is Copyright (c) 2003-2005 by Kevin M. Rosenberg +;;;; ;;;; ************************************************************************* (in-package #:uffi-tests) (uffi:def-function ("cast_test_int" cast-test-int) () - :module "c-uffi-test" + :module "uffi_tests" :returning :pointer-void) (uffi:def-function ("cast_test_float" cast-test-float) () - :module "c-uffi-test" + :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))) @@ -35,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)))