First to be more in line with how the literature treats these types. But also to make them workable with type classes.
17 lines
289 B
Python
17 lines
289 B
Python
import pytest
|
|
|
|
from ..helpers import Suite
|
|
|
|
|
|
@pytest.mark.integration_test
|
|
def test_bytes_length():
|
|
code_py = """
|
|
@exported
|
|
def testEntry(f: bytes) -> u32:
|
|
return len(f)
|
|
"""
|
|
|
|
result = Suite(code_py).run_code(b'This yet is another test')
|
|
|
|
assert 24 == result.returned_value
|