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

ImpreciseBooleanTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test___new__() 0 6 1
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