• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/*
17 * @tc.name:exp
18 * @tc.desc:test exp
19 * @tc.type: FUNC
20 * @tc.require: IssueIB212T
21 */
22print(1**"2");
23print(1**"NaN");
24print(1**"null");
25print(1**"undefined");
26print(1**"Infinity");
27
28print(1**2);
29print(1**NaN);
30print(1**null);
31print(1**undefined);
32print(1**Infinity);
33
34print(2**"2");
35print(2**"NaN");
36print(2**"null");
37print(2**"undefined");
38print(2**"Infinity");
39
40print(2**2);
41print(2**NaN);
42print(2**null);
43print(2**undefined);
44print(2**Infinity);
45
46print(0**"2");
47print(0**"NaN");
48print(0**"null");
49print(0**"undefined");
50print(0**"Infinity");
51
52print(0**2);
53print(0**NaN);
54print(0**null);
55print(0**undefined);
56print(0**Infinity);
57
58