'Regression test against #2983'

def test_init_float32_array(self):

    lon = Longitude(np.float32([1.0, 2.0]), u.degree)
    lat = Latitude(np.float32([3.0, 4.0]), u.degree)
    s1 = UnitSphericalRepresentation(lon=lon, lat=lat, copy=False)
    assert (s1.lon.dtype == np.float32)
    assert (s1.lat.dtype == np.float32)
    assert (s1._values[u'lon'].dtype == np.float32)
    assert (s1._values[u'lat'].dtype == np.float32)
