Skip to content

Commit 83b4c2a

Browse files
committed
add tests
1 parent 01e8aaf commit 83b4c2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/json_mend_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@
249249
{
250250
input: '1.2',
251251
expected_output: 1.2
252+
},
253+
{
254+
input: '1.2258e2',
255+
expected_output: 122.58
252256
}
253257
].each do |test_case|
254258
it "repair #{test_case[:input]} to #{test_case[:expected_output]}" do

0 commit comments

Comments
 (0)