summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2021-12-23 11:28:46 -0500
committerAustin Ziegler <austin@zieglers.ca>2021-12-23 11:45:41 -0500
commit813b9e7c842a2f83e8433be95451732f80bfd786 (patch)
tree162e85c66ebd195e0885a84ef1502975bb34127a
parent9e850d8067b38baee890bf193a92014dcd4553e2 (diff)
downloaddiff-lcs-813b9e7c842a2f83e8433be95451732f80bfd786.tar.gz
standardrb --only Style/StringChars
-rw-r--r--spec/lcs_spec.rb2
-rw-r--r--spec/traverse_sequences_spec.rb4
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