Skip to content

Commit a500514

Browse files
author
julianknutsen
committed
test(polecat): add tests for core.go
Refs gt-0lsa9
1 parent d54727c commit a500514

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

internal/polecat/core_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package polecat
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestCoreVersion_IsSet(t *testing.T) {
8+
if CoreVersion == "" {
9+
t.Error("CoreVersion should not be empty")
10+
}
11+
}
12+
13+
func TestCoreVersion_MatchesExpected(t *testing.T) {
14+
expected := "1.0.0"
15+
if CoreVersion != expected {
16+
t.Errorf("CoreVersion = %q, want %q", CoreVersion, expected)
17+
}
18+
}

0 commit comments

Comments
 (0)