| 43 | } |
| 44 | |
| 45 | static void CheckContainsOnlyIntegers(const ITypedSequence<float>& typedSequence) { |
| 46 | typedSequence.ForEach( |
| 47 | [] (float value) { |
| 48 | float integerPart; |
| 49 | CB_ENSURE_INTERNAL( |
| 50 | std::modf(value, &integerPart) == 0.0f, |
| 51 | "targetType is Integer but target values contain non-integer data" |
| 52 | ); |
| 53 | } |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | static void CheckRawTarget(ERawTargetType targetType, const TVector<TRawTarget>& target, ui32 objectCount) { |
no test coverage detected