tests/basics/bytes_add: Add tests for optimised bytes addition.

pull/2939/head
Damien George 2017-03-16 14:31:03 +11:00
rodzic d279bcff8a
commit eeff0c3528
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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