Skip to content

Commit aaa20cc

Browse files
committed
Add tests for coercion error and equals with incompatible types
1 parent 893257d commit aaa20cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/basic_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
subject { x * y }
6161
it { is_expected.to eq sym('x')*sym('y') }
6262
it { is_expected.not_to eq sym('x')*sym('z') }
63+
it { is_expected.not_to eq "asd" }
6364
end
6465

6566
it 'simplifies' do
@@ -90,6 +91,7 @@
9091

9192
it 'raises on wrong args' do
9293
expect { 'x' * x }.to raise_error(TypeError)
94+
expect { x * 'x' }.to raise_error(TypeError)
9395
end
9496
end
9597

0 commit comments

Comments
 (0)