nac3/nac3core/irrt/test/test_slice.hpp

20 lines
378 B
C++
Raw Normal View History

#pragma once
#include <test/core.hpp>
#include <irrt_everything.hpp>
void test_slice_1() {
BEGIN_TEST();
UserSlice user_slice(5);
Slice slice;
user_slice.indices(100, &slice);
assert_values_match(0, slice.start);
assert_values_match(5, slice.stop);
assert_values_match(1, slice.step);
}
void run_all_tests_ndarray_slice() {
test_slice_1();
}