Passed
Push — main ( 75102d...3f4c69 )
by Christophe
02:45 queued 01:15
created

SharpTest.test_sharp_sharp()   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from unittest import TestCase
2
3
from panflute import Doc, convert_text
4
5
import pandoc_numbering
6
7
8
class SharpTest(TestCase):
9
    def test_sharp_sharp(self):
10
        definition = r"Example ##"
11
        doc = Doc(*convert_text(definition))
12
        pandoc_numbering.main(doc)
13
        self.assertEqual(doc.content[0].content[-1].text, "#")
14