# Path: pysc2/lib/named_array.py
# class NamedDict(dict):
# class NamedNumpyArray(np.ndarray):
#   def __init__(self, *args, **kwargs):
#   def __new__(cls, values, names, *args, **kwargs):
#   def __array_finalize__(self, obj):
#   def __getattr__(self, name):
#   def __setattr__(self, name, value):
#   def __getitem__(self, indices):
#   def __setitem__(self, indices, value):
#   def __getslice__(self, i, j):  # deprecated, but still needed...
#   def __setslice__(self, i, j, seq):  # deprecated, but still needed...
#   def __repr__(self):
#   def __reduce__(self):
#   def __setstate__(self, state):
#   def _indices(self, indices):
#   def _get_index(self, dim, index):
# _NULL_SLICE = slice(None, None, None)


import collections
import pickle
import enum
import numpy as np
from absl.testing import absltest
from absl.testing import parameterized
from pysc2.lib import named_array
#!/usr/bin/python
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for lib.named_array."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





class NamedDictTest(absltest.TestCase):

  def test_named_dict(self):

# Path: pysc2/lib/named_array.py
# class NamedDict(dict):
# class NamedNumpyArray(np.ndarray):
#   def __init__(self, *args, **kwargs):
#   def __new__(cls, values, names, *args, **kwargs):
#   def __array_finalize__(self, obj):
#   def __getattr__(self, name):
#   def __setattr__(self, name, value):
#   def __getitem__(self, indices):
#   def __setitem__(self, indices, value):
#   def __getslice__(self, i, j):  # deprecated, but still needed...
#   def __setslice__(self, i, j, seq):  # deprecated, but still needed...
#   def __repr__(self):
#   def __reduce__(self):
#   def __setstate__(self, state):
#   def _indices(self, indices):
#   def _get_index(self, dim, index):
# _NULL_SLICE = slice(None, None, None)


# Path: pysc2/lib/named_array_test.py
import collections
import pickle
import enum
import numpy as np
from absl.testing import absltest
from absl.testing import parameterized
from pysc2.lib import named_array

#!/usr/bin/python
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for lib.named_array."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function





class NamedDictTest(absltest.TestCase):

  def test_named_dict(self):

    a = named_array.NamedDict(a=2, b=(1, 2))