We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58bc25b commit e6b08b9Copy full SHA for e6b08b9
test/1_stdlib/NumericParsing.swift.gyb
@@ -92,6 +92,10 @@ tests.test("${Self}/success") {
92
expectEqual(nil, ${Self}("${minValue - 1}"))
93
expectEqual(nil, ${Self}("\u{1D7FF}")) // MATHEMATICAL MONOSPACE DIGIT NINE
94
95
+ // Cases that should fail to parse
96
+ expectEqual(nil, ${Self}("--0")) // Zero w/ repeated plus
97
+ expectEqual(nil, ${Self}("-+5")) // Non-zero with -+
98
+
99
// Do more exhaustive testing
100
% for radix in radices_to_test:
101
% for n in required_values + range(
0 commit comments