
'''
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
'''

from __future__ import absolute_import, print_function, unicode_literals


def print_test_result(expected, actual):
    print("[expected]\n{}\n".format(expected))
    print("[actual]\n{}\n".format(actual))


'''
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
'''

from __future__ import absolute_import, print_function, unicode_literals

import sys


def print_test_result(expected, actual, error=None):
    print("[expected]\n{}\n".format(expected))
    print("[actual]\n{}\n".format(actual))

    if error:
        print(error, file=sys.stderr)

Add an argument to print stderr of test results
Add an argument to print stderr of test results

  
  '''
  .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  '''
  
  from __future__ import absolute_import, print_function, unicode_literals
  
+ import sys
  
+ 
- def print_test_result(expected, actual):
+ def print_test_result(expected, actual, error=None):
      print("[expected]\n{}\n".format(expected))
      print("[actual]\n{}\n".format(actual))
  
+     if error:
+         print(error, file=sys.stderr)
+ 
Add an argument to print stderr of test results
## Code Before:

'''
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
'''

from __future__ import absolute_import, print_function, unicode_literals


def print_test_result(expected, actual):
    print("[expected]\n{}\n".format(expected))
    print("[actual]\n{}\n".format(actual))

## Instruction:
Add an argument to print stderr of test results
## Code After:

'''
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
'''

from __future__ import absolute_import, print_function, unicode_literals

import sys


def print_test_result(expected, actual, error=None):
    print("[expected]\n{}\n".format(expected))
    print("[actual]\n{}\n".format(actual))

    if error:
        print(error, file=sys.stderr)
