spec/code/object/string_spec.rb in code-ruby-0.8.5 vs spec/code/object/string_spec.rb in code-ruby-0.9.0

- old
+ new

@@ -1,14 +1,14 @@ require "spec_helper" RSpec.describe Code::Object::String do [ - [":a", "a"], - [":a_b_c_0123", "a_b_c_0123"], - ['"Hello"', "Hello"], - ["'Hello'", "Hello"], + %w[:a a], + %w[:a_b_c_0123 a_b_c_0123], + %w["Hello" Hello], + %w['Hello' Hello], ['"Hello\nWorld"', "Hello\nWorld"], - ["'Hello\\nWorld'", "Hello\nWorld"], + ["'Hello\\nWorld'", "Hello\nWorld"] ].each do |input, expected| it "(#{input}).to_s == #{expected.inspect}" do expect(Code.evaluate(input).to_s).to eq(expected) end end