'Test CharSeq as NPM argument'

def test_npm_argument_charseq(self):

    def pyfunc(arr, i):
        return arr[i].n
    identity = jit((lambda x: x))
    @jit(nopython=True)
    def cfunc(arr, i):
        return identity(arr[i].n)
    for i in range(self.refsample1d.size):
        expected = pyfunc(self.refsample1d, i)
        got = cfunc(self.nbsample1d, i)
        self.assertEqual(expected, got)
