Coverage for skema/isa/data.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-04-30 17:15 +0000

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

2 

3mml = """<math> 

4 <mfrac> 

5 <mrow> 

6 <mi>&#x2202;</mi> 

7 <mi>H</mi> 

8 </mrow> 

9 <mrow> 

10 <mi>&#x2202;</mi> 

11 <mi>t</mi> 

12 </mrow> 

13 </mfrac> 

14 <mo>=</mo> 

15 <mi>&#x2207;</mi> 

16 <mo>&#x22C5;</mo> 

17 <mo>(</mo> 

18 <mi>&#x0393;</mi> 

19 <msup> 

20 <mi>H</mi> 

21 <mrow> 

22 <mi>n</mi> 

23 <mo>+</mo> 

24 <mn>2</mn> 

25 </mrow> 

26 </msup> 

27 <mo>|</mo> 

28 <mi>&#x2207;</mi> 

29 <mi>H</mi> 

30 <msup> 

31 <mo>|</mo> 

32 <mrow> 

33 <mi>n</mi> 

34 <mo>&#x2212;</mo> 

35 <mn>1</mn> 

36 </mrow> 

37 </msup> 

38 <mi>&#x2207;</mi> 

39 <mi>H</mi> 

40 <mo>)</mo> 

41 </math> 

42 """ 

43 

44expected = 'digraph G {\n0 [color=blue, label="Div(Γ*(H^(n+2))*(Abs(Grad(H))^(n-1))*Grad(H))"];\n1 [color=blue, label="PD(1, t)(H)"];\n2 [color=blue, label="Γ*(H^(n+2))*(Abs(Grad(H))^(n-1))*Grad(H)"];\n3 [color=blue, label="Γ"];\n4 [color=blue, label="H^(n+2)"];\n5 [color=blue, label="H"];\n6 [color=blue, label="n+2"];\n7 [color=blue, label="n"];\n8 [color=blue, label="2"];\n9 [color=blue, label="Abs(Grad(H))^(n-1)"];\n10 [color=blue, label="Abs(Grad(H))"];\n11 [color=blue, label="Grad(H)"];\n12 [color=blue, label="n-1"];\n13 [color=blue, label="1"];\n1 -> 0 [color=blue, label="="];\n2 -> 0 [color=blue, label="Div"];\n3 -> 2 [color=blue, label="*"];\n4 -> 2 [color=blue, label="*"];\n5 -> 4 [color=blue, label="^"];\n6 -> 4 [color=blue, label="^"];\n7 -> 6 [color=blue, label="+"];\n8 -> 6 [color=blue, label="+"];\n9 -> 2 [color=blue, label="*"];\n10 -> 9 [color=blue, label="^"];\n11 -> 10 [color=blue, label="Abs"];\n5 -> 11 [color=blue, label="Grad"];\n12 -> 9 [color=blue, label="^"];\n7 -> 12 [color=blue, label="+"];\n13 -> 12 [color=blue, label="-"];\n11 -> 2 [color=blue, label="*"];\n}\n'