summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-27 15:47:57 +0200
committerAlon Levy <alon@pobox.com>2014-10-27 15:47:57 +0200
commitd7d34eb2bece8a39fecc3354de0f7d0a6e8827c6 (patch)
treedc56b6daad594237acbc9dd9198005d0ceddbe4b /tests
parent7c974d834b7c6f0e3a0cf1f3d06b97ffc436ec36 (diff)
update test output, mark issue 86 test as such
Diffstat (limited to 'tests')
-rw-r--r--tests/output/test_analyzer.js.stdout92
-rw-r--r--tests/test_analyzer.js3
2 files changed, 94 insertions, 1 deletions
diff --git a/tests/output/test_analyzer.js.stdout b/tests/output/test_analyzer.js.stdout
index 5db6c9ac..9a7ffb2b 100644
--- a/tests/output/test_analyzer.js.stdout
+++ b/tests/output/test_analyzer.js.stdout
@@ -5,3 +5,95 @@ test harness: starting script loading with requirejs
test harness: main loaded
Rhizi main started
rhizi: init drag-n-drop
+analyzing #a hello there #b
+starGraph: false
+bug: temp node creation on finalize
+expected: a,b
+got: a|b
+expected: a,b,hello there
+got: a,b,hello there
+digraph {
+ a;
+ b;
+ a -> b [label=hello there];
+}
+analyzing #c and #d like #e
+starGraph: false
+bug: temp node creation on finalize
+expected: c,d,e
+got: c|d|e
+expected: c,e,like,d,e,like
+got: c,d,and,d,e,like,c,e,like
+digraph {
+ c;
+ d;
+ e;
+ c -> d [label=and];
+ d -> e [label=like];
+ c -> e [label=like];
+}
+analyzing #f and #g and #h are cool
+starGraph: true
+bug: temp node creation on finalize
+bug: temp node creation on finalize
+expected: f,g,h,are cool
+got: f|g|h|f and g and h are cool
+expected: f,are cool,,g,are cool,,h,are cool,
+got: f,f and g and h are cool,,g,f and g and h are cool,,h,f and g and h are cool,
+digraph {
+ f;
+ g;
+ h;
+ "f and g and h are cool";
+ f -> "f and g and h are cool" [label=];
+ g -> "f and g and h are cool" [label=];
+ h -> "f and g and h are cool" [label=];
+}
+analyzing #i likes #j and #k
+starGraph: false
+bug: temp node creation on finalize
+expected: i,j,k
+got: i|j|k
+expected: i,j,likes
+got: i,j,likes,j,k,and,i,k,likes
+digraph {
+ i;
+ j;
+ k;
+ i -> j [label=likes];
+ j -> k [label=and];
+ i -> k [label=likes];
+}
+analyzing #q likes #r but doesn't like #l
+starGraph: true
+bug: temp node creation on finalize
+expected: q,r,l
+got: q|r|l|q likes r but doesn't like l
+expected:
+got: q,q likes r but doesn't like l,,r,q likes r but doesn't like l,,l,q likes r but doesn't like l,
+digraph {
+ q;
+ r;
+ l;
+ "q likes r but doesn't like l";
+ q -> "q likes r but doesn't like l" [label=];
+ r -> "q likes r but doesn't like l" [label=];
+ l -> "q likes r but doesn't like l" [label=];
+}
+analyzing #c and #d and #m are tightly connected
+starGraph: true
+bug: temp node creation on finalize
+bug: temp node creation on finalize
+expected:
+got: c|d|m|c and d and m are tightly connected
+expected:
+got: c,c and d and m are tightly connected,,d,c and d and m are tightly connected,,m,c and d and m are tightly connected,
+digraph {
+ c;
+ d;
+ m;
+ "c and d and m are tightly connected";
+ c -> "c and d and m are tightly connected" [label=];
+ d -> "c and d and m are tightly connected" [label=];
+ m -> "c and d and m are tightly connected" [label=];
+}
diff --git a/tests/test_analyzer.js b/tests/test_analyzer.js
index 0b5403a3..0df43e49 100644
--- a/tests/test_analyzer.js
+++ b/tests/test_analyzer.js
@@ -4,7 +4,8 @@ var data = [
["#a hello there #b", ["a", "b"], [["a", "b", "hello there"]],
["#a hello there2 #ba", ["a", "ba"], ["a", "ba", "hello there2"]]],
["#c and #d like #e", ["c", "d", "e"], [["c", "e", "like"], ["d", "e", "like"]]],
-["#f and #g and #h are cool", ["f", "g", "h", "are cool"], [["f", "are cool", ""], ["g", "are cool", ""], ["h", "are cool", ""]]], // the are should be a label actually, but harder to do.
+// issue 86
+["#f and #g and #h are cool", ["f", "g", "h", "f and g and h are cool"], [["f", "f and g and h are cool", ""], ["g", "f and g and h are cool", ""], ["h", "f and g and h are cool", ""]]],
["#i likes #j and #k", ["i", "j", "k"], ["i", "j", "likes"], ["i", "k", "likes"]],
["#q likes #r but doesn't like #l", ["q", "r", "l"], []],
];