From eeff0c352845649a3ae7b2e325361744d2db114b Mon Sep 17 00:00:00 2001 From: Damien George <damien.p.george@gmail.com> Date: Thu, 16 Mar 2017 14:31:03 +1100 Subject: [PATCH] tests/basics/bytes_add: Add tests for optimised bytes addition. --- tests/basics/bytes_add.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/basics/bytes_add.py b/tests/basics/bytes_add.py index 5432d01e5..ebccf0662 100644 --- a/tests/basics/bytes_add.py +++ b/tests/basics/bytes_add.py @@ -2,3 +2,7 @@ print(b"123" + b"456") print(b"123" + bytearray(2)) + +print(b"123" + b"") # RHS is empty, can be optimised +print(b"" + b"123") # LHS is empty, can be optimised +print(b"" + bytearray(1)) # LHS is empty but can't be optimised -- GitLab