mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
16 lines
298 B
Go
16 lines
298 B
Go
|
|
// 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")
|
||
|
|
}
|
||
|
|
}
|