-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathversion_test.go
More file actions
31 lines (24 loc) · 769 Bytes
/
Copy pathversion_test.go
File metadata and controls
31 lines (24 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package angols_test
import (
angols "github.com/synesissoftware/ANGoLS"
"github.com/stretchr/testify/require"
"testing"
)
const (
Expected_VersionMajor uint16 = 0
Expected_VersionMinor uint16 = 11
Expected_VersionPatch uint16 = 0
Expected_VersionAB uint16 = 0xFFFF
)
func Test_Version_Elements(t *testing.T) {
require.Equal(t, Expected_VersionMajor, angols.VersionMajor)
require.Equal(t, Expected_VersionMinor, angols.VersionMinor)
require.Equal(t, Expected_VersionPatch, angols.VersionPatch)
require.Equal(t, Expected_VersionAB, angols.VersionAB)
}
func Test_Version(t *testing.T) {
require.Equal(t, uint64(0x0000_000B_0000_FFFF), angols.Version())
}
func Test_Version_String(t *testing.T) {
require.Equal(t, "0.11.0", angols.VersionString())
}