Fork me on GitHub
#off-topic
<
2017-03-10
>
not-raspberry10:03:31

@simon #sql If that function is everything, I'd just use a temporary db and issue SELECT initcap('input'). Maybe I don't understand the question.

okwori11:03:10

@not-raspberry Yeah that's a MySQL function which is intended to convert any case sentence to a Sentence case. Just trying to know how to write test scripts for a function (or any procedure) like this one.

not-raspberry11:03:34

Just as any unit test, except here you have to issue MySQL queries. Connect to MySQL in a fixture, and use it in the test.