dymokomi/luce-browser-foundation
Source of release 0.6.0
0.6.0 / src / ak / tests_support.lucb
#==============================================================================================
#
# tests_support - shared helpers of the ak text tests (region r02)
#
# DESCRIPTION:
# Small Vector readers shared by the string tests.
#
#==============================================================================================
## The element at `index` of a vector, by value (`vector[index]` in the C++ tests).
func test_vector_at[T](vector: const Vector[T]*, index: usize) -> T:
return *vector_at_const(vector, index)
## The size of a vector.
func test_vector_size[T](vector: const Vector[T]*) -> usize:
return vector_size(vector)