From de40b4779cd2f35abea4f58217afd3de96bcb09e Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Fri, 20 Sep 2024 16:13:00 -0500 Subject: [PATCH] fix tests --- tests/test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test.php b/tests/test.php index 52b2914..7bef9d9 100644 --- a/tests/test.php +++ b/tests/test.php @@ -1,7 +1,7 @@ routes, TREES . 'blog.txt'); +writeRoutesToFile($r->dump(), TREES . 'blog.txt'); echoTitle("Starting blog lookups"); runIterations(10000, $r, $blog); runIterations(100000, $r, $blog); @@ -32,7 +32,7 @@ unset($blog); // Github lookups $r->clear(); $github = readAndAddRoutes(ROUTES . 'github.txt', $r); -writeRoutesToFile($r->routes, TREES . 'github.txt'); +writeRoutesToFile($r->dump(), TREES . 'github.txt'); echoTitle("Starting github lookups"); runIterations(10000, $r, $github); runIterations(100000, $r, $github); @@ -42,7 +42,7 @@ unset($github); // Big lookups $r->clear(); $big = readAndAddRoutes(ROUTES . 'big.txt', $r); -writeRoutesToFile($r->routes, TREES . 'big.txt'); +writeRoutesToFile($r->dump(), TREES . 'big.txt'); echoTitle("Starting big lookups"); runIterations(10000, $r, $big); runIterations(100000, $r, $big);