1
0
Fork 0
mirror of https://github.com/Luzifer/go-metar.git synced 2024-10-18 05:04:21 +00:00
go-metar/helpers_test.go

21 lines
433 B
Go
Raw Permalink Normal View History

2016-05-21 11:48:30 +00:00
package metar_test
import (
. "github.com/Luzifer/go-metar"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Helpers", func() {
It("should convert values into expected results", func() {
Expect(KtsToMs(1)).To(Equal(0.514444))
Expect(InHgTohPa(1)).To(Equal(33.8638866667))
Expect(StatMileToKm(1)).To(Equal(1.60934))
Expect(MbTohPa(1)).To(Equal(0.1))
Expect(KtsToBft(5)).To(Equal(2))
})
})