forked from M-Labs/nac3
20 lines
378 B
C++
20 lines
378 B
C++
#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();
|
|
} |