summaryrefslogtreecommitdiff
path: root/tikzit/src/common/test
diff options
context:
space:
mode:
authorJohan Paulsson <gonz@users.sourceforge.net>2013-01-24 16:30:02 +0000
committerJohan Paulsson <gonz@users.sourceforge.net>2013-01-24 16:30:02 +0000
commit702a3875c5c7c5c937e55d50039ccb0c7bced754 (patch)
treeee41f8802ec6b7904de7921fb97fa7f262e129aa /tikzit/src/common/test
parent310d4379dd0f439e9a988c3202add12021384690 (diff)
Anchor support for the parser and osx gui
Diffstat (limited to 'tikzit/src/common/test')
-rw-r--r--tikzit/src/common/test/parser.m11
-rw-r--r--tikzit/src/common/test/test.m2
2 files changed, 8 insertions, 5 deletions
diff --git a/tikzit/src/common/test/parser.m b/tikzit/src/common/test/parser.m
index 29dabe7..3346acd 100644
--- a/tikzit/src/common/test/parser.m
+++ b/tikzit/src/common/test/parser.m
@@ -34,7 +34,7 @@ void testParser() {
[TikzGraphAssembler setup];
- NodeStyle *rn = [NodeStyle defaultStyleWithName:@"rn"];
+ NodeStyle *rn = [NodeStyle defaultNodeStyleWithName:@"rn"];
NSArray *styles = [NSArray arrayWithObject:rn];
NSString *tikz =
@@ -74,9 +74,12 @@ void testParser() {
TEST(@"Edge has edge node", [e1 edgeNode]!=nil);
TEST(@"Edge node labeled correctly", [[[e1 edgeNode] label] isEqualToString:@"-"]);
- NSString *sty = [[[[[e1 edgeNode] data] atoms] objectEnumerator] nextObject];
- TEST(@"Edge node styled correctly", sty!=nil && [sty isEqualToString:@"tick"]);
-
+// NSString *sty = [[[[[e1 edgeNode] data] atoms] objectEnumerator] nextObject];
+// TEST(@"Edge node styled correctly", sty!=nil && [sty isEqualToString:@"tick"]);
+
+ PUTS(@"Source anchor: %@",[e1 sourceAnchor]);
+ PUTS(@"Target anchor: %@",[e1 targetAnchor]);
+
endTestBlock(@"parser");
[pool drain];
diff --git a/tikzit/src/common/test/test.m b/tikzit/src/common/test/test.m
index 8437646..9afcd67 100644
--- a/tikzit/src/common/test/test.m
+++ b/tikzit/src/common/test/test.m
@@ -160,7 +160,7 @@ void runTests();
int main() {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- setColorEnabled (YES);
+ setColorEnabled (NO);
startTests();
runTests();