<reponame>raywang06053127/TensorFlow-Course
# This code has been provided by TensorFlow.
# Please refer to: https://www.tensorflow.org/api_guides/python/test

import tensorflow as tf

class SquareTest(tf.test.TestCase):

  def testSquare(self):
    with self.test_session():
      x = tf.square([2, 3])
      self.assertAllEqual(x.eval(), [4, 9])

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

# This code has been provided by TensorFlow.
# Please refer to: https://www.tensorflow.org/api_guides/python/test

import tensorflow as tf

class SquareTest(tf.test.TestCase):

  def testSquare(self):
    with self.test_session():
      x = tf.square([2, 3])
      self.assertAllEqual(x.eval(), [4, 9])

if __name__ == '__main__':
    tf.test.main()
# This code has been provided by TensorFlow. # Please refer to: https://www.tensorflow.org/api_guides/python/test