Completed
Push — master ( bd259b...7b4bdc )
by Christophe
9s
created

ImpreciseBooleanTest.test___new__()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
1
# This Python file uses the following encoding: utf-8
2
3
from unittest import TestCase
4
5
from galactic.type.boolean import *
6
7
8
class ImpreciseBooleanTest(TestCase):
9
    def test___new__(self):
10
        boolean = ImpreciseBoolean([True, False])
11
        self.assertEqual(
12
            str(boolean),
13
            "{True, False}",
14
            "The string representation of an imprecise boolean is not correct"
15
        )
16