Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-6409
The testing of compute kernels we normally use a simple example that is specific to a particular numeric type. We should write a generic helper function and expand testing to all numeric types.