# -*- coding: utf-8 -*-

import unittest
from outtest import OutputTestCase
import uri_1042

class TestUri1042(OutputTestCase):

    def test_output1(self):
        self.input(['7 21 -14'])
        uri_1042.main()
        self.assert_output([
            '-14',
            '7',
            '21',
            '',
            '7',
            '21',
            '-14'
        ])

    def test_output2(self):
        self.input(['-14 21 7'])
        uri_1042.main()
        self.assert_output([
            '-14',
            '7',
            '21',
            '',
            '-14',
            '21',
            '7'
        ])

if __name__ == '__main__':
    unittest.main()