Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_memory_view():
assert isinstance(Instance(TEST_BYTES).memory.uint8_view(), Uint8Array)
def test_cannot_construct():
assert isinstance(Uint8Array(0), Uint8Array)
def test_is_a_class():
assert inspect.isclass(Memory)
assert inspect.isclass(Uint8Array)
assert inspect.isclass(Int8Array)
assert inspect.isclass(Uint16Array)
assert inspect.isclass(Int16Array)
assert inspect.isclass(Uint32Array)
assert inspect.isclass(Int32Array)