Skip to content

Commit e4bf23c

Browse files
committed
Fix ruby-xor correctness check
1 parent ccaf789 commit e4bf23c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/ruby-xor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def ruby_xor!(a, b)
4242
end
4343

4444
# Do a correctness check, outside of the hot path
45-
out = ruby_xor!(a.dup, b)
45+
out = ruby_xor!(A.dup, B)
4646

4747
if out != "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000L\u001F\u0000N\u0006\u0000\u001F\e\u001C\u000EN\u0014T\u0005\u0000\u001A\u000F\u0000\u0019\u0006T\u001DS\v\tU\u0019S\u0006\t\e\u0018E\r\e\u001DT\u001C\u000F\u0010\u0012\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u001D\u0000\u0005\u0000"
4848
raise "incorrect output"

0 commit comments

Comments
 (0)