mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[ruby/csv] test: rename Helper to CSVHelper
(https://github.com/ruby/csv/pull/278) Rename it so that in ruby/ruby, the generic name Helper is not used.
This commit is contained in:
parent
e151a2ff8e
commit
38ef537ce0
Notes:
git
2023-05-24 16:44:38 +00:00
6 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ require "csv"
|
||||||
|
|
||||||
require_relative "../lib/with_different_ofs"
|
require_relative "../lib/with_different_ofs"
|
||||||
|
|
||||||
module Helper
|
module CSVHelper
|
||||||
def with_chunk_size(chunk_size)
|
def with_chunk_size(chunk_size)
|
||||||
chunk_size_keep = ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"]
|
chunk_size_keep = ENV["CSV_PARSER_SCANNER_TEST_CHUNK_SIZE"]
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require_relative "../helper"
|
require_relative "../helper"
|
||||||
|
|
||||||
class TestCSVParseInputsScanner < Test::Unit::TestCase
|
class TestCSVParseInputsScanner < Test::Unit::TestCase
|
||||||
include Helper
|
include CSVHelper
|
||||||
|
|
||||||
def test_scan_keep_over_chunks_nested_back
|
def test_scan_keep_over_chunks_nested_back
|
||||||
input = CSV::Parser::UnoptimizedStringIO.new("abcdefghijklmnl")
|
input = CSV::Parser::UnoptimizedStringIO.new("abcdefghijklmnl")
|
||||||
|
|
|
@ -5,7 +5,7 @@ require_relative "../helper"
|
||||||
|
|
||||||
class TestCSVParseRowSeparator < Test::Unit::TestCase
|
class TestCSVParseRowSeparator < Test::Unit::TestCase
|
||||||
extend DifferentOFS
|
extend DifferentOFS
|
||||||
include Helper
|
include CSVHelper
|
||||||
|
|
||||||
def test_multiple_characters
|
def test_multiple_characters
|
||||||
with_chunk_size("1") do
|
with_chunk_size("1") do
|
||||||
|
|
|
@ -4,7 +4,7 @@ require_relative "../helper"
|
||||||
|
|
||||||
class TestCSVParseSkipLines < Test::Unit::TestCase
|
class TestCSVParseSkipLines < Test::Unit::TestCase
|
||||||
extend DifferentOFS
|
extend DifferentOFS
|
||||||
include Helper
|
include CSVHelper
|
||||||
|
|
||||||
def test_default
|
def test_default
|
||||||
csv = CSV.new("a,b,c\n")
|
csv = CSV.new("a,b,c\n")
|
||||||
|
|
|
@ -5,7 +5,7 @@ require_relative "helper"
|
||||||
|
|
||||||
class TestCSVEncodings < Test::Unit::TestCase
|
class TestCSVEncodings < Test::Unit::TestCase
|
||||||
extend DifferentOFS
|
extend DifferentOFS
|
||||||
include Helper
|
include CSVHelper
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
require_relative "../helper"
|
require_relative "../helper"
|
||||||
|
|
||||||
module TestCSVWriteGeneral
|
module TestCSVWriteGeneral
|
||||||
include Helper
|
include CSVHelper
|
||||||
|
|
||||||
def test_tab
|
def test_tab
|
||||||
assert_equal("\t#{$INPUT_RECORD_SEPARATOR}",
|
assert_equal("\t#{$INPUT_RECORD_SEPARATOR}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue