Skip to content

Commit 81c5867

Browse files
committed
types_test: test cases for big varints
Added test cases for varints that can't be contained in any primitive.
1 parent 9be7d9f commit 81c5867

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scylla/src/transport/cql_types_test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ fn varint_test_cases() -> Vec<&'static str> {
116116
"-129",
117117
"123456789012345678901234567890",
118118
"-123456789012345678901234567890",
119+
// Test cases for numbers that can't be contained in u/i128.
120+
"1234567890123456789012345678901234567890",
121+
"-1234567890123456789012345678901234567890",
119122
]
120123
}
121124

0 commit comments

Comments
 (0)