X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-connection.lisp;h=f35261ec232d293efced587c8748d82f73dcfee1;hb=72c5d9d0555b01290409dc2607935db823fa1f10;hp=2952444743c80c1f763573d56c1a037e48b785c8;hpb=70227e5f0b76bb649fc6c1a478d7374953fd815b;p=clsql.git diff --git a/tests/test-connection.lisp b/tests/test-connection.lisp index 2952444..f35261e 100644 --- a/tests/test-connection.lisp +++ b/tests/test-connection.lisp @@ -1,16 +1,17 @@ ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ====================================================================== ;;;; File: test-connection.lisp -;;;; Author: Marcus Pearce +;;;; Authors: Marcus Pearce , Kevin Rosenberg ;;;; Created: 30/03/2004 ;;;; Updated: $Id$ -;;;; ====================================================================== -;;;; -;;;; Description ========================================================== -;;;; ====================================================================== ;;;; ;;;; Tests for CLSQL database connections. ;;;; +;;;; This file is part of CLSQL. +;;;; +;;;; CLSQL users are granted the rights to distribute and use this software +;;;; as governed by the terms of the Lisp Lesser GNU Public License +;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ====================================================================== (in-package #:clsql-tests) @@ -25,4 +26,14 @@ (eql (clsql:database-type database) *test-database-type*)) t) +(deftest :connection/2 + (clsql-base-sys::string-to-list-connection-spec + "localhost/dbname/user/passwd") + ("localhost" "dbname" "user" "passwd")) + +(deftest :connection/3 + (clsql-base-sys::string-to-list-connection-spec + "dbname/user@hostname") + ("hostname" "dbname" "user")) + ))