mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Added team database model.
This commit is contained in:
15
database_test.go
Normal file
15
database_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 Team 254. All Rights Reserved.
|
||||
// Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestOpenUnreachableDatabase(t *testing.T) {
|
||||
_, err := OpenDatabase("nonexistentdir/test.db")
|
||||
if err == nil {
|
||||
t.Errorf("Expected error not raised")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user