Skip to content

Commit

Permalink
Update spec/std/string_spec.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Quinton Miller <nicetas.c@gmail.com>
  • Loading branch information
straight-shoota and HertzDevil authored Aug 28, 2024
1 parent 55401e3 commit 4b2aa2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/std/string_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ describe "String" do
it { "xyz\xFFxyz".rindex('\u{FFFD}', 4).should eq(3) }
it { "xyz\xFFxyz".rindex('\u{FFFD}', 2).should be_nil }
it { "日本\xFF".rindex('\u{FFFD}', 2).should eq(2) }
it { "日本\xFF".index('\u{FFFD}', 4).should be_nil }
it { "日本\xFF".rindex('\u{FFFD}', 1).should be_nil }

# Check offset type
it { "bbbb".rindex('b', 2_i64).should eq(2) }
Expand Down

0 comments on commit 4b2aa2f

Please sign in to comment.