r9199: fold clsql-base and clsql-base-sys into clsql-base
[clsql.git] / tests / test-connection.lisp
index 2952444743c80c1f763573d56c1a037e48b785c8..11d3cc43fe2ec92af5a3f9699028ed1a0cf3a62f 100644 (file)
@@ -1,16 +1,17 @@
 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
 ;;;; ======================================================================
 ;;;; File:    test-connection.lisp
-;;;; Author:  Marcus Pearce <m.t.pearce@city.ac.uk>
+;;;; Authors: Marcus Pearce <m.t.pearce@city.ac.uk>, 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)
       (eql (clsql:database-type database) *test-database-type*))
   t)
 
+(deftest :connection/2
+    (clsql-base::string-to-list-connection-spec 
+     "localhost/dbname/user/passwd")
+  ("localhost" "dbname" "user" "passwd"))
+
+(deftest :connection/3
+    (clsql-base::string-to-list-connection-spec 
+     "dbname/user@hostname")
+  ("hostname" "dbname" "user"))
+
 ))