Skip to content

Commit

Permalink
Fix the major API version test
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Nov 6, 2024
1 parent 7b54f6e commit 03f9196
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main

import (
"fmt"
"strings"
"testing"

"github.com/xyproto/algernon/engine"
Expand Down Expand Up @@ -47,8 +48,8 @@ func TestAPI(t *testing.T) {
if err := New("simpleredis", simpleredis.Version, 2.6).Check(); err != nil {
t.Error(err)
}
if err := New("permissions2", permissions.Version, 2.6).Check(); err != nil {
t.Error(err)
if !strings.HasPrefix(permissions.VersionString, "1.") {
t.Error(fmt.Errorf("permissions is %q, requires %q", permissions.VersionString, "1.*"))
}
if err := New("pinterface", pinterface.Version, 5.3).Check(); err != nil {
t.Error(err)
Expand Down

0 comments on commit 03f9196

Please sign in to comment.