1
0
mirror of https://github.com/cmur2/miflorad.git synced 2024-12-22 02:54:24 +01:00

common: fix typo in test

This commit is contained in:
cn 2019-01-02 12:54:27 +01:00
parent c2be27f2d8
commit 0cd41a924d

View File

@ -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)
} }
} }