genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/http/good_temp_test.go

18 lines
326 B
Go
Raw Normal View History

package http
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestTempFuncs(t *testing.T) {
assert := assert.New(t)
resultInt := tempProcent(3, 9)
assert.Equal(33, resultInt)
// TODO is there a other way to calc this?
resultFloat := tempProcessRadius(3, 9, 0)
assert.Equal(float64(0), resultFloat)
}