Updated everything for dependencies. All sub packages are now part of the project. This was a massive update, hopefully won't have to be reverted.
This commit is contained in:
23
gumble/go-openal/openal/openal_test.go
Normal file
23
gumble/go-openal/openal/openal_test.go
Normal file
@ -0,0 +1,23 @@
|
||||
package openal_test
|
||||
|
||||
import (
|
||||
"git.stormux.org/storm/barnard/gumble/go-openal/openal"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetVendor(t *testing.T) {
|
||||
device := openal.OpenDevice("")
|
||||
defer device.CloseDevice()
|
||||
|
||||
context := device.CreateContext()
|
||||
defer context.Destroy()
|
||||
context.Activate()
|
||||
|
||||
vendor := openal.GetVendor()
|
||||
|
||||
if err := openal.Err(); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if vendor == "" {
|
||||
t.Fatal("empty vendor returned")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user