GNOME Bugzilla – Bug 764092
gstrfuncs: Document the behaviour of g_strjoinv()
Last modified: 2016-04-04 13:10:13 UTC
.
Created attachment 324606 [details] [review] gstrfuncs: Document the behaviour of g_strjoinv() The behaviour of g_strjoinv() isn't explicitely explained when the array is NULL, or contains less than 2 items. This removes the guesswork.
Review of attachment 324606 [details] [review]: sure, that seems fine. It would be even greater if you added tests to ensure we preserve these corner cases.
Created attachment 324623 [details] [review] gstrfuncs: Document the behaviour of g_strjoinv() The behaviour of g_strjoinv() isn't explicitely explained when the array contains less than 2 items. This removes the guesswork.
Created attachment 324624 [details] [review] gstrfuncs: Add test for g_strjoinv() behaviour
(In reply to Bastien Nocera from comment #1) > Created attachment 324606 [details] [review] [review] > gstrfuncs: Document the behaviour of g_strjoinv() > > The behaviour of g_strjoinv() isn't explicitely explained when the array > is NULL, or contains less than 2 items. This removes the guesswork. Can't actually pass NULL as the array, duh!
Attachment 324623 [details] pushed as 283c565 - gstrfuncs: Document the behaviour of g_strjoinv() Attachment 324624 [details] pushed as 21ad4c8 - gstrfuncs: Add test for g_strjoinv() behaviour