scran_test_utils
Test utilities for libscran projects
Loading...
Searching...
No Matches
initial_value.hpp
Go to the documentation of this file.
1#ifndef SCRAN_TESTS_INITIAL_VALUE_HPP
2#define SCRAN_TESTS_INITIAL_VALUE_HPP
3
4#include <vector>
5
11namespace scran_tests {
12
24inline int initial_value() {
25 static int counter = 0;
26 if (counter == 255) { // fits in all numeric types.
27 counter = 1;
28 } else {
29 ++counter;
30 }
31 return counter;
32}
33
34}
35
36#endif
Test utilites for libscran.
Definition compare_almost_equal.hpp:11
int initial_value()
Definition initial_value.hpp:24