mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move spec/rubyspec to spec/ruby for consistency
* Other ruby implementations use the spec/ruby directory. [Misc #13792] [ruby-core:82287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75bfc6440d
commit
1d15d5f080
4370 changed files with 0 additions and 0 deletions
1
spec/ruby/command_line/fixtures/bad_syntax.rb
Normal file
1
spec/ruby/command_line/fixtures/bad_syntax.rb
Normal file
|
@ -0,0 +1 @@
|
|||
f {
|
|
@ -0,0 +1,3 @@
|
|||
@@@This line is not value Ruby
|
||||
#!rub_y
|
||||
puts 'success'
|
1
spec/ruby/command_line/fixtures/bin/dash_s_fail
Normal file
1
spec/ruby/command_line/fixtures/bin/dash_s_fail
Normal file
|
@ -0,0 +1 @@
|
|||
raise 'die'
|
3
spec/ruby/command_line/fixtures/bin/embedded_ruby.txt
Normal file
3
spec/ruby/command_line/fixtures/bin/embedded_ruby.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
@@@This line is not value Ruby
|
||||
#!ruby
|
||||
puts 'success'
|
4
spec/ruby/command_line/fixtures/bin/hybrid_launcher.sh
Normal file
4
spec/ruby/command_line/fixtures/bin/hybrid_launcher.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
exec somehow this file
|
||||
#!ruby
|
||||
puts 'success'
|
2
spec/ruby/command_line/fixtures/bin/launcher.rb
Normal file
2
spec/ruby/command_line/fixtures/bin/launcher.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!ruby
|
||||
puts 'success'
|
5
spec/ruby/command_line/fixtures/conditional_range.txt
Normal file
5
spec/ruby/command_line/fixtures/conditional_range.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
12
spec/ruby/command_line/fixtures/dash_s_script.rb
Normal file
12
spec/ruby/command_line/fixtures/dash_s_script.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
which = ARGV.shift.to_i
|
||||
|
||||
case which
|
||||
when 0
|
||||
p $n
|
||||
when 1
|
||||
puts $n
|
||||
when 2
|
||||
puts $_name
|
||||
when 3
|
||||
puts $___name__test__
|
||||
end
|
1
spec/ruby/command_line/fixtures/dash_upper_c_script.rb
Normal file
1
spec/ruby/command_line/fixtures/dash_upper_c_script.rb
Normal file
|
@ -0,0 +1 @@
|
|||
print Dir.pwd
|
10
spec/ruby/command_line/fixtures/debug.rb
Normal file
10
spec/ruby/command_line/fixtures/debug.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
which = ARGV.first.to_i
|
||||
|
||||
case which
|
||||
when 0
|
||||
puts "$DEBUG #{$DEBUG}"
|
||||
when 1
|
||||
puts "$VERBOSE #{$VERBOSE}"
|
||||
when 2
|
||||
puts "$-d #{$-d}"
|
||||
end
|
11
spec/ruby/command_line/fixtures/debug_info.rb
Normal file
11
spec/ruby/command_line/fixtures/debug_info.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
a = 'string'
|
||||
b = a
|
||||
c = b
|
||||
d = c
|
||||
e = d
|
||||
begin
|
||||
a << 'new part'
|
||||
rescue Exception => e
|
||||
print e.message
|
||||
end
|
|
@ -0,0 +1,3 @@
|
|||
require_relative 'freeze_flag_required'
|
||||
|
||||
p "abc".object_id == $second_literal_id
|
|
@ -0,0 +1,3 @@
|
|||
require_relative 'freeze_flag_required_diff_enc'
|
||||
|
||||
p "abc".object_id != $second_literal_id
|
|
@ -0,0 +1,2 @@
|
|||
ids = Array.new(2) { "abc".object_id }
|
||||
p ids.first == ids.last
|
1
spec/ruby/command_line/fixtures/freeze_flag_required.rb
Normal file
1
spec/ruby/command_line/fixtures/freeze_flag_required.rb
Normal file
|
@ -0,0 +1 @@
|
|||
$second_literal_id = "abc".object_id
|
BIN
spec/ruby/command_line/fixtures/freeze_flag_required_diff_enc.rb
Normal file
BIN
spec/ruby/command_line/fixtures/freeze_flag_required_diff_enc.rb
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
p "abc".object_id == "abc".object_id
|
3
spec/ruby/command_line/fixtures/full_names.txt
Normal file
3
spec/ruby/command_line/fixtures/full_names.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
alice jones
|
||||
bob field
|
||||
james grey
|
1
spec/ruby/command_line/fixtures/loadpath.rb
Normal file
1
spec/ruby/command_line/fixtures/loadpath.rb
Normal file
|
@ -0,0 +1 @@
|
|||
puts $:
|
3
spec/ruby/command_line/fixtures/names.txt
Normal file
3
spec/ruby/command_line/fixtures/names.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
alice
|
||||
bob
|
||||
james
|
3
spec/ruby/command_line/fixtures/passwd_file.txt
Normal file
3
spec/ruby/command_line/fixtures/passwd_file.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
nobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false
|
||||
root:*:0:0:System Administrator:/var/root:/bin/sh
|
||||
daemon:*:1:1:System Services:/var/root:/usr/bin/false
|
1
spec/ruby/command_line/fixtures/require.rb
Normal file
1
spec/ruby/command_line/fixtures/require.rb
Normal file
|
@ -0,0 +1 @@
|
|||
puts $"
|
1
spec/ruby/command_line/fixtures/rubyopt.rb
Normal file
1
spec/ruby/command_line/fixtures/rubyopt.rb
Normal file
|
@ -0,0 +1 @@
|
|||
puts "rubyopt.rb required"
|
1
spec/ruby/command_line/fixtures/test_file.rb
Normal file
1
spec/ruby/command_line/fixtures/test_file.rb
Normal file
|
@ -0,0 +1 @@
|
|||
"test file"
|
1
spec/ruby/command_line/fixtures/verbose.rb
Normal file
1
spec/ruby/command_line/fixtures/verbose.rb
Normal file
|
@ -0,0 +1 @@
|
|||
puts $VERBOSE.inspect
|
Loading…
Add table
Add a link
Reference in a new issue