diff --git a/tests/Neon/Encoder.phpt b/tests/Neon/Encoder.phpt index 83f5570..1e9c020 100644 --- a/tests/Neon/Encoder.phpt +++ b/tests/Neon/Encoder.phpt @@ -170,3 +170,9 @@ Assert::exception( Nette\Neon\Exception::class, 'INF and NAN cannot be encoded to NEON', ); + +$crlf = "test\r\ntest 2"; +Assert::same( + $crlf, + Neon::decode(Neon::encode($crlf, true)), +);