diff options
-rw-r--r-- | spec/lcs_spec.rb | 2 | ||||
-rw-r--r-- | spec/traverse_sequences_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lcs_spec.rb b/spec/lcs_spec.rb index e3643dd..c17f22f 100644 --- a/spec/lcs_spec.rb +++ b/spec/lcs_spec.rb @@ -47,7 +47,7 @@ describe Diff::LCS, ".LCS" do end it "returns %W(h e l l o) with (hello, hello)" do - expect(Diff::LCS.LCS(hello, hello)).to eq(hello.split(//)) + expect(Diff::LCS.LCS(hello, hello)).to eq(hello.chars) end it "returns hello_ary with (hello_ary, hello_ary)" do diff --git a/spec/traverse_sequences_spec.rb b/spec/traverse_sequences_spec.rb index ed40100..8e9928f 100644 --- a/spec/traverse_sequences_spec.rb +++ b/spec/traverse_sequences_spec.rb @@ -48,11 +48,11 @@ describe "Diff::LCS.traverse_sequences" do end it "has the correct LCS result on left-matches" do - expect(@callback.matched_a).to eq(hello.split(//)) + expect(@callback.matched_a).to eq(hello.chars) end it "has the correct LCS result on right-matches" do - expect(@callback.matched_b).to eq(hello.split(//)) + expect(@callback.matched_b).to eq(hello.chars) end it "has the correct skipped sequences with the left sequence" do |