Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
adapt symbols + \0 spec title
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Jul 15, 2014
1 parent 57d26e2 commit cff397b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/string_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
expect(f.call(s).to_h).to eq({ 's' => s, 'l' => 8.0 })
end

it 'symbols with null characters are not truncated when passed from Ruby to Lua and back' do
it 'accept symbols containing the \0 character' do

s = [ 65, 66, 0, 67, 0, 0, 68, 0 ].pack('c*').to_sym

Expand Down

0 comments on commit cff397b

Please sign in to comment.