Sha256: 29add950c3390a3bc4291a4081f585050462146e52949a137577d1867eddd5e9
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 KB
Contents
covers 'facets/string/expand_tab' tests String do tabs = <<-EOF \tOne tab \tOne space and one tab \t Six spaces, a tab, and a space EOF unit :expand_tabs => "0" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tabs(0).assert == expected end unit :expand_tabs => "1" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tabs(1).assert == expected end unit :expand_tabs => "4" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tabs(4).assert == expected end unit :expand_tabs => "8" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tabs.assert == expected tabs.expand_tabs(8).assert == expected end unit :expand_tabs => "16" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tabs(16).assert == expected end unit :expand_tab => "0 (alias for #expand_tabs)" do expected = <<-EOF One tab One space and one tab Six spaces, a tab, and a space EOF tabs.expand_tab(0).assert == expected end end
Version data entries
4 entries across 4 versions & 1 rubygems