Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/tool/test_builder.rb
Original file line numberDiff line numberDiff line change
Expand Up@@ -195,7 +195,7 @@ def create_initialized_content
<<~TEST
# frozen_string_literal: true

require_relative '../support/test_case'
require_relative '../support/console_test_case'

module DEBUGGER__
#{create_scenario_and_program}
Expand All@@ -213,7 +213,7 @@ def make_content
end

def create_file
path = "#{__dir__}/../debug/#{@file_name}_test.rb"
path = "#{__dir__}/../console/#{@file_name}_test.rb"
if File.exist?(path)
@inserted_src = File.read(path)
content = @inserted_src.split("\n")[0..-3].join("\n") + "\n#{make_content}\nend\n" if @inserted_src.include? @class
Expand DownExpand Up@@ -399,7 +399,7 @@ def create_initialized_content
<<~TEST
# frozen_string_literal: true

require_relative '../support/test_case'
require_relative '../support/protocol_test_case'

module DEBUGGER__
#{create_scenario_and_program}
Expand DownExpand Up@@ -640,7 +640,7 @@ def create_initialized_content
<<~TEST
# frozen_string_literal: true

require_relative '../support/test_case'
require_relative '../support/protocol_test_case'

module DEBUGGER__
#{create_scenario_and_program}
Expand Down