1e9297d28Sopenharmony_ci/*
2e9297d28Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
3e9297d28Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4e9297d28Sopenharmony_ci * you may not use this file except in compliance with the License.
5e9297d28Sopenharmony_ci * You may obtain a copy of the License at
6e9297d28Sopenharmony_ci *
7e9297d28Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8e9297d28Sopenharmony_ci *
9e9297d28Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10e9297d28Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11e9297d28Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12e9297d28Sopenharmony_ci * See the License for the specific language governing permissions and
13e9297d28Sopenharmony_ci * limitations under the License.
14e9297d28Sopenharmony_ci */
15e9297d28Sopenharmony_ci
16e9297d28Sopenharmony_ci#ifndef ROSEN_TEST_LIMIT_H
17e9297d28Sopenharmony_ci#define ROSEN_TEST_LIMIT_H
18e9297d28Sopenharmony_ci
19e9297d28Sopenharmony_ci#include <limits>
20e9297d28Sopenharmony_ci
21e9297d28Sopenharmony_cinamespace OHOS::Rosen::TestSrc::limitNumber {
22e9297d28Sopenharmony_ci    constexpr static float floatLimit[] = {
23e9297d28Sopenharmony_ci        0.0f, 485.44f, -34.4f,
24e9297d28Sopenharmony_ci        std::numeric_limits<float>::max(), std::numeric_limits<float>::min(),
25e9297d28Sopenharmony_ci        };
26e9297d28Sopenharmony_ci
27e9297d28Sopenharmony_ci    static constexpr uint64_t Uint64[] = {
28e9297d28Sopenharmony_ci        std::numeric_limits<uint64_t>::min(),
29e9297d28Sopenharmony_ci        std::numeric_limits<uint64_t>::max(),
30e9297d28Sopenharmony_ci        std::numeric_limits<int64_t>::max(),
31e9297d28Sopenharmony_ci        std::numeric_limits<int64_t>::min(),
32e9297d28Sopenharmony_ci        1,
33e9297d28Sopenharmony_ci        255,
34e9297d28Sopenharmony_ci        256,
35e9297d28Sopenharmony_ci        300
36e9297d28Sopenharmony_ci    };
37e9297d28Sopenharmony_ci} // namespace OHOS::Rosen::TestSrc::limitNumber
38e9297d28Sopenharmony_ci
39e9297d28Sopenharmony_ci#endif // ROSEN_TEST_LIMIT_H
40