[pypy-svn] r34128 - pypy/dist/pypy/lang/js/test
santagada at codespeak.net
santagada at codespeak.net
Fri Nov 3 17:17:49 CET 2006
Author: santagada
Date: Fri Nov 3 17:17:48 2006
New Revision: 34128
Modified:
pypy/dist/pypy/lang/js/test/test_interp.py
Log:
(stephan, santagada) One more test for the try block
Modified: pypy/dist/pypy/lang/js/test/test_interp.py
==============================================================================
--- pypy/dist/pypy/lang/js/test/test_interp.py (original)
+++ pypy/dist/pypy/lang/js/test/test_interp.py Fri Nov 3 17:17:48 2006
@@ -167,4 +167,17 @@
def test_block(self):
self.assert_result(parse_d("{ 5}"), W_Number(5))
self.assert_result(parse_d("{3; 5}"), W_Number(5))
+
+ def test_try_catch_finally(self):
+ self.assert_prints(parse_d("""
+ try {
+ throw(3);
+ }
+ catch (x) {
+ print(x);
+ }
+ finally {
+ print(5)
+ }
+ """), ["3", "5"])
\ No newline at end of file
More information about the pypy-svn
mailing list