Skip to content

Commit cfee503

Browse files
author
Kirill Nesmeyanov
committed
Fix array key tests
1 parent 8bd068b commit cfee503

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/Feature/Type/array-key.feature

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ Feature: Checking the "array-key" (TypeLang\Mapper\Type\ArrayKeyType) type behav
1111
Examples:
1212
| value | is_matched |
1313
| 9223372036854775807 | true |
14+
| -9223372036854775807 | true |
1415
| -9223372036854775807-1 | true |
15-
| -9223372036854775808 | true |
16+
| -9223372036854775808 | false |
17+
| -9223372036854775809 | false |
1618
| 1 | true |
1719
| 0 | true |
1820
| -1 | true |
@@ -83,8 +85,10 @@ Feature: Checking the "array-key" (TypeLang\Mapper\Type\ArrayKeyType) type behav
8385
Examples:
8486
| value | result |
8587
| 9223372036854775807 | 9223372036854775807 |
88+
| -9223372036854775807 | -9223372036854775807 |
8689
| -9223372036854775807-1 | -9223372036854775807-1 |
87-
| -9223372036854775808 | -9223372036854775807-1 |
90+
| -9223372036854775808 | <error: Passed value -9.2233720368548E+18 is invalid> |
91+
| -9223372036854775809 | <error: Passed value -9.2233720368548E+18 is invalid> |
8892
| 1 | 1 |
8993
| 0 | 0 |
9094
| -1 | -1 |
@@ -96,9 +100,9 @@ Feature: Checking the "array-key" (TypeLang\Mapper\Type\ArrayKeyType) type behav
96100
| INF | <error: Passed value INF is invalid> |
97101
| -INF | <error: Passed value -INF is invalid> |
98102
| NAN | <error: Passed value NAN is invalid> |
99-
| "1" | "1" |
103+
| "1" | "1" |
100104
| "0" | 0 |
101-
| "-1" | "-1" |
105+
| "-1" | "-1" |
102106
| "string" | "string" |
103107
| "true" | "true" |
104108
| "false" | "false" |

0 commit comments

Comments
 (0)