Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a test for a custom interp_receive method

git-svn-id: svn://rubyforge.org/var/svn/tcl/trunk@6 017b7ecb-b1d0-4998-98d6-e9014aaf4887
  • Loading branch information...
commit 3805cdafb271a92cb5e28d673e0ad1473945dba9 1 parent 0da7faa
Sam Stephenson sstephenson authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/interp_receive_test.rb
7 test/interp_receive_test.rb
View
@@ -63,5 +63,12 @@ def test_interp_send_converts_non_string_results_to_string
assert_equal "0", @interp.eval("interp_send multiply_by_5 0")
assert_equal "25", @interp.eval("interp_send multiply_by_5 5")
end
+
+ def test_interp_send_with_custom_interp_receive_method
+ @interp = InterpWithCustomReceiveMethod.new
+ assert_raises(Tcl::Error) { @interp.eval("interp_send") }
+ assert_equal "foo", @interp.eval("interp_send foo")
+ assert_equal "foo bar", @interp.eval("interp_send foo bar")
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.