Changeset 10213


Ignore:
Timestamp:
10/24/05 12:47:35 (16 years ago)
Author:
piso
Message:

Work in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/tests/java-tests.lisp

    r10181 r10213  
    22;;;
    33;;; Copyright (C) 2005 Peter Graves
    4 ;;; $Id: java-tests.lisp,v 1.2 2005-10-22 14:10:22 piso Exp $
     4;;; $Id: java-tests.lisp,v 1.3 2005-10-24 12:47:35 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    4747#+allegro
    4848(use-package '#:javatools.jlinker '#:cl-user) ;; For convenience only.
     49#+(and allegro mswindows)
     50(use-package '#:javatools.jlinker '#:cg-user) ;; For convenience only.
    4951#+allegro
    5052(load "jl-config.cl")
     
    7678  4)
    7779
     80(deftest jcall.2
     81  (jcall "length" "test")
     82  4)
     83
     84(deftest jcall.3
     85  (let ((method (jmethod "java.lang.String" "regionMatches" 4)))
     86    (jcall method "test" 0 "this is a test" 10 4))
     87  t)
     88
     89(deftest jcall.4
     90  (let ((method (jmethod "java.lang.String" "regionMatches" 5)))
     91    (jcall method "test" (make-immediate-object nil :boolean) 0 "this is a test" 10 4))
     92  t)
     93
    7894(deftest jfield.1
    7995  (type-of (jfield "java.lang.Integer" "TYPE"))
Note: See TracChangeset for help on using the changeset viewer.