You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trytesting.expectEqualDeep(diffs.items, (trythis.diff(arena.allocator(), "a [[Pennsylvania]] and [[New", " and [[Pennsylvania]]", false)).items); // diff: Large equality.
// Increase the text lengths by 1024 times to ensure a timeout.
2006
2006
{
2007
-
consta="`Twas brillig, and the slithy toves\nDid gyre and gimble in the wabe:\nAll mimsy were the borogoves,\nAnd the mome raths outgrabe.\n"**10;
2008
-
constb="I am the very model of a modern major general,\nI've information vegetable, animal, and mineral,\nI know the kings of England, and I quote the fights historical,\nFrom Marathon to Waterloo, in order categorical.\n"**10;
2007
+
consta="`Twas brillig, and the slithy toves\nDid gyre and gimble in the wabe:\nAll mimsy were the borogoves,\nAnd the mome raths outgrabe.\n"**1024;
2008
+
constb="I am the very model of a modern major general,\nI've information vegetable, animal, and mineral,\nI know the kings of England, and I quote the fights historical,\nFrom Marathon to Waterloo, in order categorical.\n"**1024;
2009
2009
conststart_time=std.time.milliTimestamp();
2010
2010
_=trythis.diff(arena.allocator(), a, b, false); // Travis - TODO not sure what the third arg should be
2011
2011
constend_time=std.time.milliTimestamp();
2012
2012
// Test that we took at least the timeout period.
2013
-
trytesting.expect((this.diff_timeout*1000) *10000<=end_time-start_time); // diff: Timeout min.
2013
+
trytesting.expect(this.diff_timeout<=end_time-start_time); // diff: Timeout min.
2014
2014
// Test that we didn't take forever (be forgiving).
2015
2015
// Theoretically this test could fail very occasionally if the
2016
2016
// OS task swaps or locks up for a second at the wrong moment.
0 commit comments