[pypy-svn] r56713 - pypy/branch/oo-jit/pypy/translator/cli/test

antocuni at codespeak.net antocuni at codespeak.net
Tue Jul 22 17:24:12 CEST 2008


Author: antocuni
Date: Tue Jul 22 17:24:11 2008
New Revision: 56713

Modified:
   pypy/branch/oo-jit/pypy/translator/cli/test/test_dotnet.py
Log:
make sure we can use valuetypes as dictionay keys



Modified: pypy/branch/oo-jit/pypy/translator/cli/test/test_dotnet.py
==============================================================================
--- pypy/branch/oo-jit/pypy/translator/cli/test/test_dotnet.py	(original)
+++ pypy/branch/oo-jit/pypy/translator/cli/test/test_dotnet.py	Tue Jul 22 17:24:11 2008
@@ -585,6 +585,13 @@
             return f
         self.interpret(fn, [])
 
+    def test_valuetype_key(self):
+        def fn():
+            d = {}
+            d[OpCodes.Add] = 42
+            return d[OpCodes.Add]
+        assert self.interpret(fn, []) == 42
+
     def test_classof(self):
         int32_class = classof(System.Int32)
         def fn():



More information about the Pypy-commit mailing list