diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-07 12:04:49 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-07 12:04:49 +0000 |
commit | a3736e97a6ca517c2cd7d3d93a8f2ef86e39e5b5 (patch) | |
tree | 9eef7f720314ebaff56845a74e203770e62284e4 /spec/rubyspec/core/argf/fixtures | |
parent | 52df1d0d3370919711c0577aaa42d1a864709885 (diff) | |
download | ruby-a3736e97a6ca517c2cd7d3d93a8f2ef86e39e5b5.tar.gz |
Add in-tree mspec and ruby/spec
* For easier modifications of ruby/spec by MRI developers.
* .gitignore: track changes under spec.
* spec/mspec, spec/rubyspec: add in-tree mspec and ruby/spec.
These files can therefore be updated like any other file in MRI.
Instructions are provided in spec/README.
[Feature #13156] [ruby-core:79246]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/core/argf/fixtures')
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/bin_file.txt | 2 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/encoding.rb | 5 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/file1.txt | 2 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/file2.txt | 2 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/filename.rb | 3 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/lineno.rb | 5 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/rewind.rb | 5 | ||||
-rw-r--r-- | spec/rubyspec/core/argf/fixtures/stdin.txt | 2 |
8 files changed, 26 insertions, 0 deletions
diff --git a/spec/rubyspec/core/argf/fixtures/bin_file.txt b/spec/rubyspec/core/argf/fixtures/bin_file.txt new file mode 100644 index 0000000000..2545e9037e --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/bin_file.txt @@ -0,0 +1,2 @@ +test
+test
diff --git a/spec/rubyspec/core/argf/fixtures/encoding.rb b/spec/rubyspec/core/argf/fixtures/encoding.rb new file mode 100644 index 0000000000..6e87e64346 --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/encoding.rb @@ -0,0 +1,5 @@ +ARGF.binmode +puts ARGF.binmode? +puts ARGF.gets.encoding +ARGF.skip +puts ARGF.read.encoding diff --git a/spec/rubyspec/core/argf/fixtures/file1.txt b/spec/rubyspec/core/argf/fixtures/file1.txt new file mode 100644 index 0000000000..1c89bfbd82 --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/file1.txt @@ -0,0 +1,2 @@ +file1.1 +file1.2 diff --git a/spec/rubyspec/core/argf/fixtures/file2.txt b/spec/rubyspec/core/argf/fixtures/file2.txt new file mode 100644 index 0000000000..62e8dba00b --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/file2.txt @@ -0,0 +1,2 @@ +line2.1 +line2.2 diff --git a/spec/rubyspec/core/argf/fixtures/filename.rb b/spec/rubyspec/core/argf/fixtures/filename.rb new file mode 100644 index 0000000000..599c97dd57 --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/filename.rb @@ -0,0 +1,3 @@ +puts $FILENAME while ARGF.gets +# returns last current file even when closed +puts $FILENAME diff --git a/spec/rubyspec/core/argf/fixtures/lineno.rb b/spec/rubyspec/core/argf/fixtures/lineno.rb new file mode 100644 index 0000000000..079cc92e8e --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/lineno.rb @@ -0,0 +1,5 @@ +puts $. +ARGF.gets +puts $. +ARGF.gets +puts $. diff --git a/spec/rubyspec/core/argf/fixtures/rewind.rb b/spec/rubyspec/core/argf/fixtures/rewind.rb new file mode 100644 index 0000000000..90a334cd89 --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/rewind.rb @@ -0,0 +1,5 @@ +puts ARGF.lineno +ARGF.gets +puts ARGF.lineno +ARGF.rewind +puts ARGF.lineno diff --git a/spec/rubyspec/core/argf/fixtures/stdin.txt b/spec/rubyspec/core/argf/fixtures/stdin.txt new file mode 100644 index 0000000000..063cdcb1d4 --- /dev/null +++ b/spec/rubyspec/core/argf/fixtures/stdin.txt @@ -0,0 +1,2 @@ +stdin.1 +stdin.2 |