mirror of
https://github.com/shouptech/tempgopher.git
synced 2026-02-03 16:49:42 +00:00
14 lines
228 B
Go
14 lines
228 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test_ReadTemperature(t *testing.T) {
|
|
data, err := ReadTemperature("28-000008083108")
|
|
|
|
assert.Equal(t, 0.0, data)
|
|
assert.NotEqual(t, nil, err)
|
|
}
|