bin
doc
examples
lib
python
src
t
bin
00-assert.rb
00-exit_nonzero.rb
00-exit_status.rb
00-exit_zero.rb
00-file_equal.rb
00-file_not_equal.rb
00-ignore_file.rb
00-import_file.rb
00-stderr_equal.rb
00-stderr_not_equal.rb
00-stdout_equal.rb
00-stdout_not_equal.rb
01-cmd.rb
01-misc.rb
01-simple.rb
CMDTEST_assert.rb
CMDTEST_chdir.rb
CMDTEST_cmd.rb
CMDTEST_exit_nonzero.rb
CMDTEST_exit_status.rb
CMDTEST_exit_zero.rb
CMDTEST_file_equal.rb
CMDTEST_file_not_equal.rb
CMDTEST_ignore_file.rb
CMDTEST_import_file.rb
CMDTEST_misc.rb
CMDTEST_simple.rb
CMDTEST_stdxxx_equal.rb
selftest_utils.rb
.hgignore
COPYING.txt
README.html
README.rst
Rakefile
file1.txt
file2.txt
run-regression.rb
setup.rb
33 lines
586 B
Ruby
33 lines
586 B
Ruby
#======================================================================
|
|
# test file_not_equal
|
|
|
|
#-----------------------------------
|
|
# file_not_equal -- correct ""
|
|
|
|
File.open("foo", "w") {|f| f.puts "hello" }
|
|
|
|
cmd "true.rb" do
|
|
file_not_equal "foo", ""
|
|
end
|
|
|
|
# stdout begin
|
|
# ### true.rb
|
|
# stdout end
|
|
|
|
#-----------------------------------
|
|
# file_not_equal -- incorrect ""
|
|
|
|
File.open("foo", "w") {}
|
|
|
|
cmd "true.rb" do
|
|
file_not_equal "foo", ""
|
|
end
|
|
|
|
# stdout begin
|
|
# ### true.rb
|
|
# --- ERROR: wrong file 'foo'
|
|
# --- actual: [[empty]]
|
|
# --- expect: [[empty]]
|
|
# stdout end
|
|
|