On Tue, Jan 13, 2009 at 8:19 AM, Gregory Jefferis <jeffe...@gmail.com> wrote: > Hello, > > I was trying to convert the remainder of Mike McCracken's unit tests. > > For TestComplexString, one of the tests looks like this: > > - (void)testStringFromBibTeXString{ > BDSKStringNode *sn = [BDSKStringNode nodeWithBibTeXString:@"{string}"]; > // .. snip .. > UKStringsEqual(@"string", [sn value]); > } > > > And my new equivalent like this: > > - (void)testStringFromBibTeXString{ > BDSKStringNode *sn = [BDSKStringNode nodeWithQuotedString:@"{string}"]; > STAssertEqualObjects(@"string", [sn value],nil); > } > > But this fails because [sn value] is unchanged ie @"{string}". Looking at > the code, somewhere along the line the StringNode > > nodeWithQuotedString > > method stopped detexifying the string. I presume that's the correct > behaviour? Many thanks,
I don't know what the correct behavior is here, but I can say that there are probably significant diversions between what my tests were testing back then and what the code should be doing now... BTW, this is really good - thanks for putting in the effort! -mike > > Greg. > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Bibdesk-develop mailing list > Bibdesk-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bibdesk-develop > -- Michael McCracken UCSD CSE PhD Candidate research: http://www.cse.ucsd.edu/~mmccrack/ misc: http://michael-mccracken.net/wp/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Bibdesk-develop mailing list Bibdesk-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-develop