# Autogenerated from KST: please remove this line if doing any edits by hand!

import unittest

from type_ternary_2nd_falsy import _schema

class TestTypeTernary2ndFalsy(unittest.TestCase):
    def test_type_ternary_2nd_falsy(self):
        r = _schema.parse_file('src/switch_integers.bin')

        self.assertEqual(r.v_false, False)
        self.assertEqual(r.v_int_zero, 0)
        self.assertEqual(r.v_int_neg_zero, -0)
        self.assertEqual(r.v_float_zero, 0.0)
        self.assertEqual(r.v_float_neg_zero, -0.0)
        self.assertEqual(r.v_str_w_zero, u"0")
        self.assertEqual(len(r.v_str_w_zero), 1)
        self.assertEqual(r.ut.m, 7)
        self.assertIsNone(r.v_null_ut)
        self.assertEqual(r.v_str_empty, u"")
        self.assertEqual(len(r.v_str_empty), 0)
        self.assertEqual(len(r.int_array), 2)
        self.assertEqual(len(r.v_int_array_empty), 0)

# Autogenerated from KST: please remove this line if doing any edits by hand!

import unittest

from type_ternary_2nd_falsy import _schema

class TestTypeTernary2ndFalsy(unittest.TestCase):
    def test_type_ternary_2nd_falsy(self):
        r = _schema.parse_file('src/switch_integers.bin')

        self.assertEqual(r.v_false, False)
        self.assertEqual(r.v_int_zero, 0)
        self.assertEqual(r.v_int_neg_zero, -0)
        self.assertEqual(r.v_float_zero, 0.0)
        self.assertEqual(r.v_float_neg_zero, -0.0)
        self.assertEqual(r.v_str_w_zero, u"0")
        self.assertEqual(len(r.v_str_w_zero), 1)
        self.assertEqual(r.ut.m, 7)
        self.assertIsNone(r.v_null_ut)
        self.assertEqual(r.v_str_empty, u"")
        self.assertEqual(len(r.v_str_empty), 0)
        self.assertEqual(len(r.int_array), 2)
        self.assertEqual(len(r.v_int_array_empty), 0)

# Autogenerated from KST: please remove this line if doing any edits by hand!