Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ebc009dd9203
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1985f65c5d1b
Choose a head ref
  • 4 commits
  • 63 files changed
  • 1 contributor

Commits on May 27, 2017

  1. Squashed 'spec/mspec/' changes from 4398eef..6c95759

    6c95759 Add extra output line after url
    8c72449 Revert "Check that flags are not empty before setting RUBY_FLAGS"
    3f508a3 Use ruby_cmd(nil) to get the interpreter + flags
    52b88d7 Check that flags are not empty before setting RUBY_FLAGS
    3a5ec8d Normalize the progress bar time for integration tests
    0706339 Adapt tests to follow the multi formatter change
    b36fe58 mspec/commands/mspec.rb: formatter for multi_exec
    2bef79d Wait for the user before showing the log
    af0e0e9 Handle the last merge commit message in MRI
    4b98049 Avoid printing a trailing space in the unit formatter
    ae21fe2 Adapt specs with file patterns needing to end in .rb
    d1e2d92 Don't read non .rb file as a spec
    087ace9 * remove trailing spaces, append newline at EOF.
    
    git-subtree-dir: spec/mspec
    git-subtree-split: 6c957595525fb2743f7476dfa5722a0364d4b612
    eregon committed May 27, 2017
    Copy the full SHA
    acf849a View commit details
  2. Copy the full SHA
    543e88f View commit details
  3. Squashed 'spec/ruby/' changes from 032022c..2795010

    2795010 Fix typo and use a non-existent shell to ensure reproducability
    c85f0fe Fix leak in YAML.dump spec
    bc427ef Simplify begin/ensure
    a76eb87 Properly join the server thread
    6bad344 Add UDPSocket#send and UDPSocket#write EMSGSIZE spec
    5bcd46f Added UncaughtThrowError#tag.
    06aed4a Fix signature of kernel_cb
    c2de919 Rb protect and rb_jump_tag (oracle/truffleruby#141)
    e986cae New specs for alias and undef with different types of symbols
    7b23edc Run mkmf in the spec process to avoid 36 extra startups when running C API specs
    b91bbd9 Consolidate true/false C API specs as they use the same extension
    a7f3617 Add simple spec for Kernel#gets
    a0c3d84 Add a few ensure in socket specs to close sockets properly if method fail
    35feac6 Simplify SpecTCPServer and let it find an available port
    b2330c8 Fix rb_io_wait_readable spec ordering
    4ef9825 Improve the error message for failing set_non_blocking()
    f19c598 Revert "optional/capi: fix link on mingw"
    77e7013 Revert "optional/capi: use LIBRUBYARG_SHARED"
    cdb5b61 Use the touch helper
    c8e2781 Add version guards for CGI::Cookie handling of tilde
    4d55803 Raise ArgumentError if sprintf format string ends with %
    aab6c02 rubyspec/core/io/popen_spec: avoid lingering "ruby -e sleep" process
    b12c2ad source directory may not be writable
    429bebb String#casecmp no longer raises TypeError
    ab3c3f9 Use should_receive expectation instead of singleton method
    9c24b00 add specs for Unicode-wide case conversions introduced in Ruby 2.4
    d354363 improve examples, fix one improbably should_not value
    7f99fab modify r58771.
    6156719 spec/rubyspec: Add `ruby_version_is` guard
    926107c spec/rubyspec: Fix rubyspec for tilde unescape
    c151a99 skip some tests on vboxsf.
    04a1824 ENV["HOME"] is prior as home on Windows
    68e0fcc Should require at spec file, not fixture file
    4772f9c Should require WIN32OLE
    480dff8 Use raise_error block
    12d9c31 Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED
    e0e7f20 Avoid using a class variable in socket specs
    ea6b9db Use a reserved port to test for a non-existing TCP server
    f61d983 optional/capi: use LIBRUBYARG_SHARED
    c4a907c thread_spec.c: use rb_w32_pipe
    55bf343 io_spec.c: suppress unused-variable warning
    611498e optional/capi: fix link on mingw
    45ff05c fix typo
    d88ce47 Fix language in fixture file
    5546f04 Wrap long line (> 3000 chars) in Zlib.crc_table spec
    148e733 mruby can't parse string literal concatenation
    f96cb7c Travis: Allow failures for ruby-head
    
    git-subtree-dir: spec/ruby
    git-subtree-split: 27950107dc25950d6f77276d210c5ce3e381b497
    eregon committed May 27, 2017
    Copy the full SHA
    294502c View commit details
  4. Copy the full SHA
    1985f65 View commit details
Showing with 570 additions and 195 deletions.
  1. +4 −2 spec/mspec/lib/mspec/commands/mspec.rb
  2. +1 −1 spec/mspec/lib/mspec/matchers/be_false.rb
  3. +1 −1 spec/mspec/lib/mspec/matchers/be_nil.rb
  4. +1 −1 spec/mspec/lib/mspec/matchers/be_true.rb
  5. +1 −1 spec/mspec/lib/mspec/matchers/equal_element.rb
  6. +1 −1 spec/mspec/lib/mspec/matchers/have_class_variable.rb
  7. +1 −1 spec/mspec/lib/mspec/matchers/have_instance_variable.rb
  8. +1 −1 spec/mspec/lib/mspec/runner/formatters/unit.rb
  9. +1 −1 spec/mspec/lib/mspec/utils/script.rb
  10. +1 −0 spec/mspec/spec/commands/fixtures/level2/three_spec.rb
  11. +1 −0 spec/mspec/spec/commands/fixtures/one_spec.rb
  12. +1 −0 spec/mspec/spec/commands/fixtures/three.rb
  13. +1 −0 spec/mspec/spec/commands/fixtures/two_spec.rb
  14. +1 −9 spec/mspec/spec/commands/mspec_spec.rb
  15. +1 −1 spec/mspec/spec/fixtures/print_interpreter_spec.rb
  16. +1 −1 spec/mspec/spec/runner/formatters/unit_spec.rb
  17. +2 −1 spec/mspec/spec/spec_helper.rb
  18. +1 −1 spec/mspec/spec/utils/deprecate_spec.rb
  19. +7 −6 spec/mspec/spec/utils/script_spec.rb
  20. +9 −1 spec/mspec/tool/sync/sync-rubyspec.rb
  21. +3 −0 spec/ruby/.travis.yml
  22. +6 −2 spec/ruby/command_line/dash_upper_s_spec.rb
  23. +4 −2 spec/ruby/core/dir/home_spec.rb
  24. +3 −1 spec/ruby/core/dir/shared/delete.rb
  25. +19 −0 spec/ruby/core/exception/uncaught_throw_error_spec.rb
  26. +15 −16 spec/ruby/core/io/fixtures/classes.rb
  27. +1 −1 spec/ruby/core/io/fixtures/lines.txt
  28. +6 −2 spec/ruby/core/io/popen_spec.rb
  29. +5 −0 spec/ruby/core/kernel/gets_spec.rb
  30. +2 −2 spec/ruby/core/kernel/system_spec.rb
  31. +16 −5 spec/ruby/core/kernel/test_spec.rb
  32. +6 −0 spec/ruby/core/string/capitalize_spec.rb
  33. +13 −4 spec/ruby/core/string/casecmp_spec.rb
  34. +6 −0 spec/ruby/core/string/downcase_spec.rb
  35. +12 −3 spec/ruby/core/string/modulo_spec.rb
  36. +6 −0 spec/ruby/core/string/swapcase_spec.rb
  37. +9 −10 spec/ruby/core/string/unicode_normalize_spec.rb
  38. +6 −0 spec/ruby/core/string/upcase_spec.rb
  39. +56 −0 spec/ruby/language/alias_spec.rb
  40. +41 −8 spec/ruby/language/undef_spec.rb
  41. +15 −2 spec/ruby/library/cgi/cookie/to_s_spec.rb
  42. +14 −2 spec/ruby/library/cgi/escape_spec.rb
  43. +14 −2 spec/ruby/library/erb/util/shared/url_encode.rb
  44. +6 −4 spec/ruby/library/socket/basicsocket/recv_spec.rb
  45. +11 −12 spec/ruby/library/socket/fixtures/classes.rb
  46. +10 −4 spec/ruby/library/socket/ipsocket/recvfrom_spec.rb
  47. +2 −2 spec/ruby/library/socket/tcpsocket/recv_nonblock_spec.rb
  48. +1 −4 spec/ruby/library/socket/tcpsocket/setsockopt_spec.rb
  49. +9 −7 spec/ruby/library/socket/tcpsocket/shared/new.rb
  50. +14 −12 spec/ruby/library/socket/udpsocket/send_spec.rb
  51. +1 −0 spec/ruby/library/win32ole/win32ole/ole_get_methods_spec.rb
  52. +5 −1 spec/ruby/library/yaml/dump_spec.rb
  53. +66 −2 spec/ruby/library/zlib/crc_table_spec.rb
  54. +13 −1 spec/ruby/optional/capi/{false_spec.rb → boolean_spec.rb}
  55. +6 −6 spec/ruby/optional/capi/ext/io_spec.c
  56. +32 −0 spec/ruby/optional/capi/ext/kernel_spec.c
  57. +1 −0 spec/ruby/optional/capi/ext/rubyspec.h
  58. +3 −0 spec/ruby/optional/capi/ext/thread_spec.c
  59. +5 −5 spec/ruby/optional/capi/io_spec.rb
  60. +42 −0 spec/ruby/optional/capi/kernel_spec.rb
  61. +1 −1 spec/ruby/optional/capi/mutex_spec.rb
  62. +26 −21 spec/ruby/optional/capi/spec_helper.rb
  63. +0 −21 spec/ruby/optional/capi/true_spec.rb
6 changes: 4 additions & 2 deletions spec/mspec/lib/mspec/commands/mspec.rb
Original file line number Diff line number Diff line change
@@ -44,7 +44,6 @@ def options(argv=ARGV)

options.on("-j", "--multi", "Run multiple (possibly parallel) subprocesses") do
config[:multi] = true
config[:options] << "-fy"
end

options.version MSpec::VERSION do
@@ -94,6 +93,9 @@ def multi_exec(argv)

require 'mspec/runner/formatters/multi'
formatter = MultiFormatter.new
if config[:formatter]
warn "formatter options is ignored due to multi option"
end

output_files = []
processes = [cores, @files.size].min
@@ -105,7 +107,7 @@ def multi_exec(argv)
"SPEC_TEMP_DIR" => "rubyspec_temp_#{i}",
"MSPEC_MULTI" => i.to_s
}
command = argv + ["-o", name]
command = argv + ["-fy", "-o", name]
$stderr.puts "$ #{command.join(' ')}" if $MSPEC_DEBUG
IO.popen([env, *command], "rb+")
}
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/be_false.rb
Original file line number Diff line number Diff line change
@@ -17,4 +17,4 @@ class Object
def be_false
BeFalseMatcher.new
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/be_nil.rb
Original file line number Diff line number Diff line change
@@ -17,4 +17,4 @@ class Object
def be_nil
BeNilMatcher.new
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/be_true.rb
Original file line number Diff line number Diff line change
@@ -17,4 +17,4 @@ class Object
def be_true
BeTrueMatcher.new
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/equal_element.rb
Original file line number Diff line number Diff line change
@@ -75,4 +75,4 @@ class Object
def equal_element(*args)
EqualElementMatcher.new(*args)
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/have_class_variable.rb
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ class Object
def have_class_variable(variable)
HaveClassVariableMatcher.new(variable)
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/matchers/have_instance_variable.rb
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ class Object
def have_instance_variable(variable)
HaveInstanceVariableMatcher.new(variable)
end
end
end
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/runner/formatters/unit.rb
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ def finish
@exceptions.each do |exc|
outcome = exc.failure? ? "FAILED" : "ERROR"
print "\n#{count += 1})\n#{exc.description} #{outcome}\n"
print exc.message, ": \n"
print exc.message, ":\n"
print exc.backtrace, "\n"
end
print "\n#{@tally.format}\n"
2 changes: 1 addition & 1 deletion spec/mspec/lib/mspec/utils/script.rb
Original file line number Diff line number Diff line change
@@ -185,7 +185,7 @@ def entries(partial)

patterns.each do |pattern|
expanded = File.expand_path(pattern)
if File.file?(expanded)
if File.file?(expanded) && expanded.end_with?('.rb')
return [expanded]
elsif File.directory?(expanded)
return Dir["#{expanded}/**/*_spec.rb"].sort
1 change: 1 addition & 0 deletions spec/mspec/spec/commands/fixtures/level2/three_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions spec/mspec/spec/commands/fixtures/one_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions spec/mspec/spec/commands/fixtures/three.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions spec/mspec/spec/commands/fixtures/two_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 1 addition & 9 deletions spec/mspec/spec/commands/mspec_spec.rb
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@

it "calls #multi_exec if the command is 'ci' and the multi option is passed" do
@script.should_receive(:multi_exec).and_return do |argv|
argv.should == ["ruby", "#{MSPEC_HOME}/bin/mspec-ci", "-fy"]
argv.should == ["ruby", "#{MSPEC_HOME}/bin/mspec-ci"]
end
@script.options ["ci", "-j"]
lambda do
@@ -140,14 +140,6 @@
@config[:multi].should == true
end
end

it "sets the formatter to YamlFormatter" do
["-j", "--multi"].each do |opt|
@config[:options] = []
@script.options [opt]
@config[:options].should include("-fy")
end
end
end

describe "The -h, --help option" do
2 changes: 1 addition & 1 deletion spec/mspec/spec/fixtures/print_interpreter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
unless defined?(RSpec)
puts ENV["RUBY_EXE"]
puts ruby_cmd("nil").split.first
puts ruby_cmd(nil).split.first
end
2 changes: 1 addition & 1 deletion spec/mspec/spec/runner/formatters/unit_spec.rb
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
1)
describe it ERROR
Exception: broken:
Exception: broken:
path/to/some/file.rb:35:in method
1 example, 0 failures
3 changes: 2 additions & 1 deletion spec/mspec/spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -48,7 +48,8 @@ def run_mspec(command, args)
ret = $?
out = out.sub(/\A\$.+\n/, '') # Remove printed command line
out = out.sub(RUBY_DESCRIPTION, "RUBY_DESCRIPTION")
out = out.gsub(/\d\.\d{6}/, "D.DDDDDD")
out = out.gsub(/\d\.\d{6}/, "D.DDDDDD") # Specs total time
out = out.gsub(/\d{2}:\d{2}:\d{2}/, "00:00:00") # Progress bar time
out = out.gsub(cwd, "CWD")
return out, ret
end
2 changes: 1 addition & 1 deletion spec/mspec/spec/utils/deprecate_spec.rb
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
warning.should start_with(<<-EOS.chomp)
some_method is deprecated, use other_method instead.
from
from
EOS
warning.should include(__FILE__)
warning.should include('8')
13 changes: 7 additions & 6 deletions spec/mspec/spec/utils/script_spec.rb
Original file line number Diff line number Diff line change
@@ -356,9 +356,9 @@ class MSSClass < MSpecScript; end
end

it "returns the pattern in an array if it is a file" do
File.should_receive(:expand_path).with("file").and_return("file/expanded")
File.should_receive(:file?).with("file/expanded").and_return(true)
@script.entries("file").should == ["file/expanded"]
File.should_receive(:expand_path).with("file").and_return("file/expanded.rb")
File.should_receive(:file?).with("file/expanded.rb").and_return(true)
@script.entries("file").should == ["file/expanded.rb"]
end

it "returns Dir['pattern/**/*_spec.rb'] if pattern is a directory" do
@@ -381,9 +381,10 @@ class MSSClass < MSpecScript; end
end

it "returns the pattern in an array if it is a file" do
File.should_receive(:expand_path).with(@name).and_return(@name)
File.should_receive(:file?).with(@name).and_return(true)
@script.entries("name").should == [@name]
name = "#{@name}.rb"
File.should_receive(:expand_path).with(name).and_return(name)
File.should_receive(:file?).with(name).and_return(true)
@script.entries("name.rb").should == [name]
end

it "returns Dir['pattern/**/*_spec.rb'] if pattern is a directory" do
10 changes: 9 additions & 1 deletion spec/mspec/tool/sync/sync-rubyspec.rb
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
git: "https://github.com/ruby/ruby.git",
master: "trunk",
prefix: "spec/rubyspec",
merge_message: "Update to ruby/spec@",
},
}

@@ -52,6 +53,10 @@ def from_commit
"#{from}..." if from
end

def last_merge_message
@data[:merge_message] || "Merge ruby/spec commit"
end

def prefix
@data[:prefix] || "spec/ruby"
end
@@ -113,7 +118,7 @@ def rebase_commits(impl)
if ENV["LAST_MERGE"]
last_merge = `git log -n 1 --format='%H %ct' #{ENV["LAST_MERGE"]}`
else
last_merge = `git log --grep='Merge ruby/spec commit' -n 1 --format='%H %ct'`
last_merge = `git log --grep='#{impl.last_merge_message}' -n 1 --format='%H %ct'`
end
last_merge, commit_timestamp = last_merge.chomp.split(' ')

@@ -167,6 +172,8 @@ def verify_commits(impl)
end

puts "Manually check commit messages:"
print "Press enter >"
STDIN.gets
sh "git", "log", "master..."
end
end
@@ -183,6 +190,7 @@ def check_ci
puts <<-EOS
Push to master, and check that the CI passes:
https://github.com/ruby/spec/commits/master
EOS
end

3 changes: 3 additions & 0 deletions spec/ruby/.travis.yml
Original file line number Diff line number Diff line change
@@ -20,6 +20,9 @@ matrix:
env: CHECK_LEAKS=true
- os: linux
rvm: ruby-head
allow_failures:
- os: linux
rvm: ruby-head
branches:
only:
- master
8 changes: 6 additions & 2 deletions spec/ruby/command_line/dash_upper_s_spec.rb
Original file line number Diff line number Diff line change
@@ -6,14 +6,18 @@
end

platform_is_not :windows do
# On VirtualBox shared directory (vboxsf) all files are world writable
# and MRI shows warning when including world writable path in ENV['PATH'].
# This is why we are using /success$/ matching in the following cases.

it "runs launcher found in PATH, but only code after the first /\#!.*ruby.*/-ish line in target file" do
result = ruby_exe(nil, options: '-S hybrid_launcher.sh', env: { 'PATH' => @path }, args: '2>&1')
result.should == "success\n"
result.should =~ /success$/
end

it "runs launcher found in PATH" do
result = ruby_exe(nil, options: '-S launcher.rb', env: { 'PATH' => @path }, args: '2>&1')
result.should == "success\n"
result.should =~ /success$/
end
end
end
6 changes: 4 additions & 2 deletions spec/ruby/core/dir/home_spec.rb
Original file line number Diff line number Diff line change
@@ -5,8 +5,10 @@
it "returns the current user's home directory as a string if called without arguments" do
home_directory = ENV['HOME']
platform_is :windows do
path = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
home_directory = path.tr('\\', '/').chomp('/')
unless home_directory
home_directory = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
end
home_directory = home_directory.tr('\\', '/').chomp('/')
end

Dir.home.should == home_directory
4 changes: 3 additions & 1 deletion spec/ruby/core/dir/shared/delete.rb
Original file line number Diff line number Diff line change
@@ -40,8 +40,10 @@
end

it "raises an Errno::ENOTDIR when trying to remove a non-directory" do
file = DirSpecs.mock_rmdir("nonempty/regular")
touch(file)
lambda do
Dir.send @method, __FILE__
Dir.send @method, file
end.should raise_error(Errno::ENOTDIR)
end

19 changes: 19 additions & 0 deletions spec/ruby/core/exception/uncaught_throw_error_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "UncaughtThrowError" do
it "is a subclass of ArgumentError" do
ArgumentError.should be_ancestor_of(UncaughtThrowError)
end
end

describe "UncaughtThrowError#tag" do
it "returns the object thrown" do
begin
throw :abc

rescue UncaughtThrowError => e
e.tag.should == :abc
end
end
end

31 changes: 15 additions & 16 deletions spec/ruby/core/io/fixtures/classes.rb
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ def self.lines
"\n",
"\n",
"Aqu\303\255 est\303\241 la l\303\255nea tres.\n",
"Ist hier Linie vier.\n",
"Hier ist Zeile vier.\n",
"\n",
"Est\303\241 aqui a linha cinco.\n",
"Here is line six.\n" ]
@@ -31,8 +31,8 @@ def self.lines_limit
"Aquí está",
" la línea",
" tres.\n",
"Ist hier L",
"inie vier.",
"Hier ist Z",
"eile vier.",
"\n",
"\n",
"Está aqui",
@@ -55,9 +55,10 @@ def self.lines_space_separator_limit
"está ",
"la ",
"línea ",
"tres.\nIst ",
"hier ",
"Linie ",
"tres.\nHier",
" ",
"ist ",
"Zeile ",
"vier.\n\nEst",
"á ",
"aqui ",
@@ -71,37 +72,35 @@ def self.lines_space_separator_limit
end

def self.lines_r_separator
[ "Voici la ligne une.\nQui \303\250 la linea due.\n\n\n" \
"Aqu\303\255 est\303\241 la l\303\255nea tr",
"es.\nIst hier",
" Linie vier",
[ "Voici la ligne une.\nQui \303\250 la linea due.\n\n\nAqu\303\255 est\303\241 la l\303\255nea tr",
"es.\nHier",
" ist Zeile vier",
".\n\nEst\303\241 aqui a linha cinco.\nHer",
"e is line six.\n" ]
end

def self.lines_empty_separator
[ "Voici la ligne une.\nQui \303\250 la linea due.\n\n",
"Aqu\303\255 est\303\241 la l\303\255nea tres.\nIst hier Linie vier.\n\n",
"Aqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\n",
"Est\303\241 aqui a linha cinco.\nHere is line six.\n" ]
end

def self.lines_space_separator
[ "Voici ", "la ", "ligne ", "une.\nQui ",
"\303\250 ", "la ", "linea ", "due.\n\n\nAqu\303\255 ",
"est\303\241 ", "la ", "l\303\255nea ", "tres.\nIst ",
"hier ", "Linie ", "vier.\n\nEst\303\241 ", "aqui ", "a ",
"est\303\241 ", "la ", "l\303\255nea ", "tres.\nHier ",
"ist ", "Zeile ", "vier.\n\nEst\303\241 ", "aqui ", "a ",
"linha ", "cinco.\nHere ", "is ", "line ", "six.\n" ]
end

def self.lines_arbitrary_separator
[ "Voici la ligne une.\nQui \303\250",
" la linea due.\n\n\nAqu\303\255 est\303\241 la l\303\255nea tres.\n" \
"Ist hier Linie vier.\n\nEst\303\241 aqui a linha cinco.\nHere is line six.\n" ]
" la linea due.\n\n\nAqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\nEst\303\241 aqui a linha cinco.\nHere is line six.\n" ]
end

def self.paragraphs
[ "Voici la ligne une.\nQui \303\250 la linea due.\n\n",
"Aqu\303\255 est\303\241 la l\303\255nea tres.\nIst hier Linie vier.\n\n",
"Aqu\303\255 est\303\241 la l\303\255nea tres.\nHier ist Zeile vier.\n\n",
"Est\303\241 aqui a linha cinco.\nHere is line six.\n" ]
end

2 changes: 1 addition & 1 deletion spec/ruby/core/io/fixtures/lines.txt
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ Qui è la linea due.


Aquí está la línea tres.
Ist hier Linie vier.
Hier ist Zeile vier.

Está aqui a linha cinco.
Here is line six.
Loading