mirror of
https://github.com/cmur2/miflorad.git
synced 2024-11-01 00:56:17 +01:00
common: fix typo in test
This commit is contained in:
parent
c2be27f2d8
commit
0cd41a924d
@ -9,7 +9,7 @@ import (
|
|||||||
func TestNumericFirmwareVersion(t *testing.T) {
|
func TestNumericFirmwareVersion(t *testing.T) {
|
||||||
tables := []struct {
|
tables := []struct {
|
||||||
metaData VersionBatteryResponse
|
metaData VersionBatteryResponse
|
||||||
firmwire int
|
firmware int
|
||||||
}{
|
}{
|
||||||
{VersionBatteryResponse{BatteryLevel: 99, FirmwareVersion: "1.0.0"}, 10000},
|
{VersionBatteryResponse{BatteryLevel: 99, FirmwareVersion: "1.0.0"}, 10000},
|
||||||
{VersionBatteryResponse{BatteryLevel: 88, FirmwareVersion: "2.6.6"}, 20606},
|
{VersionBatteryResponse{BatteryLevel: 88, FirmwareVersion: "2.6.6"}, 20606},
|
||||||
@ -19,6 +19,6 @@ func TestNumericFirmwareVersion(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, table := range tables {
|
for _, table := range tables {
|
||||||
assert.Equal(t, table.metaData.NumericFirmwareVersion(), table.firmwire)
|
assert.Equal(t, table.metaData.NumericFirmwareVersion(), table.firmware)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user