Skip to content

Commit c5205a2

Browse files
committed
Test for Division By Zero
1 parent 4e64375 commit c5205a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/integer_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,10 @@
6767
end
6868
end
6969
end
70+
71+
describe 'errors' do
72+
it 'raises an exception on division by zero' do
73+
expect { SymEngine(1)/SymEngine(0) }.to raise_error(RuntimeError)
74+
end
75+
end
7076
end

0 commit comments

Comments
 (0)