diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-02-04 11:55:17 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-02-04 11:55:17 +0000 |
commit | 5349460f6ba630d92ab61f4cbe1c04210e7684cc (patch) | |
tree | ffca8efdeb7e51477d6f90e93512f75432600c48 /tikzit/src/common/test | |
parent | f9bdbf93887313a79528696607d96140f33cbd84 (diff) | |
parent | 5afd392bb6ddde79f0518ffd913bd8c365bf39e6 (diff) |
Merge branch 'master' into multi-docs
Diffstat (limited to 'tikzit/src/common/test')
-rw-r--r-- | tikzit/src/common/test/parser.m | 11 | ||||
-rw-r--r-- | tikzit/src/common/test/test.m | 2 |
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(); |