"""Tests for tensorflow_lite_support.metadata.metadata_parser."""

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

import re
import tensorflow as tf

from tensorflow_lite_support.metadata.python import metadata_parser


class MetadataParserTest(tf.test.TestCase):

  def testVersionWellFormedSemanticVersion(self):
    # Validates that the version is well-formed (x.y.z).
    self.assertTrue(
        re.match('[0-9]+\\.[0-9]+\\.[0-9]+',
                 metadata_parser.MetadataParser.VERSION))


if __name__ == '__main__':
  tf.test.main()
