mojo/public/tools/mojom/mojom/parse/parser_unittest.py
def testValidNestedArray(self):
    """Tests parsing a nested array."""

    source = "struct MyStruct { array<array<int32>> nested_array; };"
    expected = ast.Mojom(None, ast.ImportList(), [
        ast.Struct(
            'MyStruct', None,
            ast.StructBody(
                ast.StructField('nested_array', None, None, 'int32[][]', None)))
    ])
    self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
Tests parsing a nested array.
Tests parsing a nested array.
Tests parsing a nested array .
def testValidNestedArray(self):
    source = "struct MyStruct { array<array<int32>> nested_array; };"
    expected = ast.Mojom(None, ast.ImportList(), [
        ast.Struct(
            'MyStruct', None,
            ast.StructBody(
                ast.StructField('nested_array', None, None, 'int32[][]', None)))
    ])
    self.assertEquals(parser.Parse(source, "my_file.mojom"), expected)
def testValidNestedArray ( self ) : source = "struct MyStruct { array<array<int32>> nested_array; };" expected = ast . Mojom ( None , ast . ImportList ( ) , [ ast . Struct ( 'MyStruct' , None , ast . StructBody ( ast . StructField ( 'nested_array' , None , None , 'int32[][]' , None ) ) ) ] ) self . assertEquals ( parser . Parse ( source , "my_file.mojom" ) , expected )
Tests parsing a nested array.
Tests parsing a nested array .
"""Tests parsing a nested array."""
self