https://github.com/halide/Halide
Raw File
Tip revision: 72c91b18a594318c2323bc9668d05e9f85748cb1 authored by Andrew Adams on 14 January 2020, 01:09:30 UTC
Switch to 16 entries per line
Tip revision: 72c91b1
user_context_test.py
import array
import user_context


def test():
    output = bytearray("\0\0\0\0", "ascii")
    user_context.user_context(None, ord('q'), output)
    assert output == bytearray("qqqq", "ascii")


if __name__ == "__main__":
    test()
back to top