diff options
Diffstat (limited to 'test/unit/test_features.py')
-rw-r--r-- | test/unit/test_features.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/test_features.py b/test/unit/test_features.py index 408084086..53c2263f3 100644 --- a/test/unit/test_features.py +++ b/test/unit/test_features.py @@ -245,19 +245,19 @@ class FeatureValidationTest(utils.BinaryenTestCase): self.check_multivalue(module, 'Multivalue block type ' + '(multivalue is not enabled)') - def test_anyref_global(self): + def test_i31_global(self): module = ''' (module - (global $foo anyref (ref.null any)) + (global $foo (ref null i31) (ref.null i31)) ) ''' self.check_gc(module, 'all used types should be allowed') - def test_anyref_local(self): + def test_i31_local(self): module = ''' (module (func $foo - (local $0 anyref) + (local $0 (ref null i31)) ) ) ''' @@ -330,7 +330,7 @@ class TargetFeaturesSectionTest(utils.BinaryenTestCase): filename = 'reference_types_target_feature.wasm' self.roundtrip(filename) self.check_features(filename, ['reference-types']) - self.assertIn('externref', self.disassemble(filename)) + self.assertIn('anyref', self.disassemble(filename)) def test_exception_handling(self): filename = 'exception_handling_target_feature.wasm' |