assert text os-insensitive

Avoid `Warning: Strings contain different line endings!` across OS.