@@ -533,31 +533,31 @@ defmodule ExceptionTest do
533
533
test "annotates band arithmetic errors" do
534
534
use Bitwise
535
535
536
- assert blame_message ( :foo , & band ( 10 , & 1 ) ) ==
537
- "bad argument in arithmetic expression: Bitwise.band(10, :foo)"
536
+ assert blame_message ( :foo , & band ( & 1 , 10 ) ) ==
537
+ "bad argument in arithmetic expression: Bitwise.band(:foo, 10 )"
538
538
539
- assert blame_message ( :foo , & ( 10 &&& & 1 ) ) ==
540
- "bad argument in arithmetic expression: Bitwise.band(10, :foo)"
539
+ assert blame_message ( :foo , & ( & 1 &&& 10 ) ) ==
540
+ "bad argument in arithmetic expression: Bitwise.band(:foo, 10 )"
541
541
end
542
542
543
543
test "annotates bor arithmetic errors" do
544
544
use Bitwise
545
545
546
- assert blame_message ( :foo , & bor ( 10 , & 1 ) ) ==
547
- "bad argument in arithmetic expression: Bitwise.bor(10, :foo)"
546
+ assert blame_message ( :foo , & bor ( & 1 , 10 ) ) ==
547
+ "bad argument in arithmetic expression: Bitwise.bor(:foo, 10 )"
548
548
549
- assert blame_message ( :foo , & ( 10 ||| & 1 ) ) ==
550
- "bad argument in arithmetic expression: Bitwise.bor(10, :foo)"
549
+ assert blame_message ( :foo , & ( & 1 ||| 10 ) ) ==
550
+ "bad argument in arithmetic expression: Bitwise.bor(:foo, 10 )"
551
551
end
552
552
553
553
test "annotates bxor arithmetic errors" do
554
554
use Bitwise
555
555
556
- assert blame_message ( :foo , & bxor ( 10 , & 1 ) ) ==
557
- "bad argument in arithmetic expression: Bitwise.bxor(10, :foo)"
556
+ assert blame_message ( :foo , & bxor ( & 1 , 10 ) ) ==
557
+ "bad argument in arithmetic expression: Bitwise.bxor(:foo, 10 )"
558
558
559
- assert blame_message ( :foo , & ( 10 ^^^ & 1 ) ) ==
560
- "bad argument in arithmetic expression: Bitwise.bxor(10, :foo)"
559
+ assert blame_message ( :foo , & ( & 1 ^^^ 10 ) ) ==
560
+ "bad argument in arithmetic expression: Bitwise.bxor(:foo, 10 )"
561
561
end
562
562
563
563
test "annotates bsl arithmetic errors" do
0 commit comments