summaryrefslogtreecommitdiffstats
path: root/nws/nws_test.go
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-05-21 17:50:58 -0400
committersiddharth <s@ricketyspace.net>2022-05-21 17:50:58 -0400
commita4caaf7c0ea5b7495df9a9aeb91936e635000061 (patch)
tree6340b5046470277f1f4d4f1cfe4fba321e01af2f /nws/nws_test.go
parentabc77bdb347ed5042de6d74771d52291fe5fef0a (diff)
nws: update NWSPointProperties
Add relative location.
Diffstat (limited to 'nws/nws_test.go')
-rw-r--r--nws/nws_test.go7
1 files changed, 7 insertions, 0 deletions
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 {