File tree Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
MetaGraphsNext
3
3
4
- A package for graphs with vertex labels and metadata in Julia. Its main export is the [ `MetaGraph`](@ref) type.
4
+ A package for graphs with vertex labels and metadata in Julia. Its main export is the `MetaGraph` type.
5
5
"""
6
6
module MetaGraphsNext
7
7
Original file line number Diff line number Diff line change @@ -34,8 +34,16 @@ simple_str = mktemp() do file, io
34
34
read (file, String)
35
35
end
36
36
37
- print (simple_str) # md
38
- @test simple_str == " graph T {\n \" a\"\n \" b\"\n \" a\" -- \" b\"\n }\n " # src
37
+ simple_str_true = """
38
+ graph T {
39
+ "a"
40
+ "b"
41
+ "a" -- "b"
42
+ }
43
+ """
44
+
45
+ simple_str == simple_str_true
46
+ @test simple_str == simple_str_true # src
39
47
40
48
# -
41
49
@@ -58,9 +66,18 @@ complicated_str = mktemp() do file, io
58
66
read (file, String)
59
67
end
60
68
61
- print (complicated_str) # md
62
- @test complicated_str == # src
63
- " digraph G {\n tagged = true\n \" a\" [code_1 = 1, code_2 = 2]\n \" b\" [code = 2]\n \" a\" -> \" b\" [code = 12]\n }\n " # src
69
+ complicated_str_true = """
70
+ digraph G {
71
+ tagged = true
72
+ "a" [code_1 = 1, code_2 = 2]
73
+ "b" [code = 2]
74
+ "a" -> "b" [code = 12]
75
+ }
76
+ """
77
+
78
+ @test complicated_str == complicated_str_true
79
+
80
+ # -
64
81
65
82
with_spaces = MetaGraph (
66
83
DiGraph ();
@@ -80,11 +97,13 @@ with_spaces_str = mktemp() do file, io
80
97
read (file, String)
81
98
end
82
99
83
- print (with_spaces_str)
84
- @test with_spaces_str == """
85
- digraph G {
86
- "a b" [label = "A B"]
87
- "c d" [label = "C D"]
88
- "a b" -> "c d" [label = "A B to C D"]
89
- }
90
- """
100
+ with_spaces_str_true = """
101
+ digraph G {
102
+ "a b" [label = "A B"]
103
+ "c d" [label = "C D"]
104
+ "a b" -> "c d" [label = "A B to C D"]
105
+ }
106
+ """
107
+
108
+ with_spaces_str == with_spaces_str_true
109
+ @test with_spaces_str == with_spaces_str_true # src
You can’t perform that action at this time.
0 commit comments