From a4caaf7c0ea5b7495df9a9aeb91936e635000061 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 21 May 2022 17:50:58 -0400 Subject: nws: update NWSPointProperties Add relative location. --- nws/nws_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nws/nws_test.go') diff --git a/nws/nws_test.go b/nws/nws_test.go index 27f56e4..fde4ea4 100644 --- a/nws/nws_test.go +++ b/nws/nws_test.go @@ -28,6 +28,13 @@ func TestPoints(t *testing.T) { t.Errorf("points: gridy: %v", np.Properties.GridY) } + if np.Properties.RelativeLocation.Properties.City != "Tiffin" { + t.Errorf("points: location: city: %v", np.Properties) + } + if np.Properties.RelativeLocation.Properties.State != "OH" { + t.Errorf("points: location: state: %v", np.Properties) + } + // Test invalid lat,lng np, err = Points(115.0, -83.177) if err == nil { -- cgit v1.2.3