Skip to content

Commit 2a5353f

Browse files
committed
(maint) Stdlib::Compat::Integer accepts numbers with newlines apparently
1 parent b7af918 commit 2a5353f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spec/aliases/integer_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'3',
99
-3,
1010
'-3',
11+
"123\n456",
1112
].each do |value|
1213
describe value.inspect do
1314
let(:params) {{ value: value }}

spec/functions/is_integer_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
it { is_expected.to run.with_params('3').and_return(true) }
1212
it { is_expected.to run.with_params(-3).and_return(true) }
1313
it { is_expected.to run.with_params('-3').and_return(true) }
14+
it { is_expected.to run.with_params("123\n456").and_return(true) }
1415

1516
it { is_expected.to run.with_params(3.7).and_return(false) }
1617
it { is_expected.to run.with_params('3.7').and_return(false) }

0 commit comments

Comments
 (0)