odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.39k stars 562 forks source link

Fix printing of duplicate signs in complex and quaternion types #3667

Closed Feoramund closed 2 months ago

Feoramund commented 2 months ago

Imaginary negative zero was appearing as +-0 and imaginary positive infinity as ++Inf. This PR should prevent both cases, and I've added some relevant tests for fmt.