-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathversion_test.go
More file actions
31 lines (24 loc) · 806 Bytes
/
Copy pathversion_test.go
File metadata and controls
31 lines (24 loc) · 806 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 libclimate_test
import (
libclimate "github.com/synesissoftware/libCLImate.Go"
"github.com/stretchr/testify/require"
"testing"
)
const (
Expected_VersionMajor uint16 = 0
Expected_VersionMinor uint16 = 8
Expected_VersionPatch uint16 = 2
Expected_VersionAB uint16 = 0xFFFF
)
func Test_Version_Elements(t *testing.T) {
require.Equal(t, Expected_VersionMajor, libclimate.VersionMajor)
require.Equal(t, Expected_VersionMinor, libclimate.VersionMinor)
require.Equal(t, Expected_VersionPatch, libclimate.VersionPatch)
require.Equal(t, Expected_VersionAB, libclimate.VersionAB)
}
func Test_Version(t *testing.T) {
require.Equal(t, uint64(0x0000_0008_0002_FFFF), libclimate.Version())
}
func Test_Version_String(t *testing.T) {
require.Equal(t, "0.8.2", libclimate.VersionString())
}