Sha256: 4df6bc1c201b7b1ea362ea77117ca8fb93495a85a779e00392bf0eb53ded4edd

Contents?: true

Size: 195 Bytes

Versions: 6

Compression:

Stored size: 195 Bytes

Contents

# fronzen_string_literal: true

RSpec.describe Strings, '#fold' do
  it "folds a multiline text into a single line" do
    expect(Strings.fold("\tfoo \r\n\n\n bar")).to eq(" foo  bar")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strings-0.1.8 spec/unit/fold_spec.rb
strings-0.1.7 spec/unit/fold_spec.rb
strings-0.1.6 spec/unit/fold_spec.rb
strings-0.1.5 spec/unit/fold_spec.rb
strings-0.1.4 spec/unit/fold_spec.rb
strings-0.1.3 spec/unit/fold_spec.rb