A_unwrapped = collect(range(0, stop=10π, length=100))
A_wrapped = A_unwrapped .% (2π)

@test unwrap(A_wrapped) == A_unwrapped

# test in-place version
unwrap!(A_wrapped)
@test A_wrapped == A_unwrapped

A_bf_uw = collect(range(0, stop=10*BigFloat(π), length=100))
A_bf_w = A_bf_uw .% (2*BigFloat(π))
@test unwrap(A_bf_w) ≈ A_bf_uw

A_f32_uw = collect(range(0, stop=10*Float32(π), length=100))
A_f32_w = A_bf_uw .% (2*Float32(π))
@test unwrap(A_bf_w) ≈ A_bf_uw
