From be98bfc4ee3a635315daaac4dae5093ccb107d11 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sun, 16 Jul 2023 03:12:01 +0900 Subject: [ruby/irb] Indent multiline percent literals (https://github.com/ruby/irb/pull/643) https://github.com/ruby/irb/commit/18bb4022a9 --- test/irb/test_ruby_lex.rb | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test') diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb index 1e6f0f0c48..de1585b9c0 100644 --- a/test/irb/test_ruby_lex.rb +++ b/test/irb/test_ruby_lex.rb @@ -256,13 +256,13 @@ module TestIRB PromptRow.new('001:0:":* ', %q(< ', %q(])), PromptRow.new('012:0: :> ', %q()), ] @@ -737,16 +737,16 @@ module TestIRB Row.new(%q( [1), 10, 12, 3), Row.new(%q( ]+[["a), 10, 14, 4), Row.new(%q(b" + <<~A + <<-B + < ', %q(end)), @@ -813,12 +813,12 @@ module TestIRB def test_dynamic_prompt_with_multiline_literal input_with_prompt = [ PromptRow.new('001:1: :* ', %q(if true)), - PromptRow.new('002:1:]:* ', %q( %w[)), - PromptRow.new('003:1:]:* ', %q( a)), + PromptRow.new('002:2:]:* ', %q( %w[)), + PromptRow.new('003:2:]:* ', %q( a)), PromptRow.new('004:1: :* ', %q( ])), PromptRow.new('005:1: :* ', %q( b)), - PromptRow.new('006:1:]:* ', %q( %w[)), - PromptRow.new('007:1:]:* ', %q( c)), + PromptRow.new('006:2:]:* ', %q( %w[)), + PromptRow.new('007:2:]:* ', %q( c)), PromptRow.new('008:1: :* ', %q( ])), PromptRow.new('009:0: :> ', %q(end)), ] @@ -830,8 +830,8 @@ module TestIRB def test_dynamic_prompt_with_blank_line input_with_prompt = [ - PromptRow.new('001:0:]:* ', %q(%w[)), - PromptRow.new('002:0:]:* ', %q()), + PromptRow.new('001:1:]:* ', %q(%w[)), + PromptRow.new('002:1:]:* ', %q()), PromptRow.new('003:0: :> ', %q(])), ] -- cgit v1.2.3