mirror of
https://github.com/cmur2/miflorad.git
synced 2026-10-17 08:39:36 +02:00
common: fix typo in test
This commit is contained in:
1 parent
c2be27f2d8
commit
0cd41a924d
1 file changed
+2
-2
@@ -9,7 +9,7 @@ import (
|
||||
func TestNumericFirmwareVersion(t *testing.T) {
|
||||
tables := []struct {
|
||||
metaData VersionBatteryResponse
|
||||
firmwire int
|
||||
firmware int
|
||||
}{
|
||||
{VersionBatteryResponse{BatteryLevel: 99, FirmwareVersion: "1.0.0"}, 10000},
|
||||
{VersionBatteryResponse{BatteryLevel: 88, FirmwareVersion: "2.6.6"}, 20606},
|
||||
@@ -19,6 +19,6 @@ func TestNumericFirmwareVersion(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, table := range tables {
|
||||
assert.Equal(t, table.metaData.NumericFirmwareVersion(), table.firmwire)
|
||||
assert.Equal(t, table.metaData.NumericFirmwareVersion(), table.firmware)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user