If either the left or the right side of a concatenation happens to be the EmptyString, then don't bother to allocate or return a new concatenation. Instead, return the other side.
Modify compilerkit_concatenation_new to return GObject *. Check if either the left or right are the EmptyString, and if so, return the other side instead.
Write a test case in tests/concatenation-test.c that verifies that compilerkit_concatenation_new works as intended.
If either the left or the right side of a concatenation happens to be the EmptyString, then don't bother to allocate or return a new concatenation. Instead, return the other side.
compilerkit_concatenation_new
to returnGObject *
. Check if either theleft
orright
are the EmptyString, and if so, return the other side instead.tests/concatenation-test.c
that verifies thatcompilerkit_concatenation_new
works as intended.