Skip to content

Commit

Permalink
Assert time
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinans committed Jan 13, 2025
1 parent fdd34a6 commit 22307d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/js/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ let () =
let cg = export () in
let agg = aggregate_landmarks cg in
let all_nodes = nodes agg in
assert ((root cg).time > 0.);
print_endline "\nLandmark reached:";
all_nodes
|> List.map (fun {name; time; _} -> Printf.sprintf "%s %.0f" name time)
|> List.map (fun {name; _} -> name)
|> List.sort String.compare
|> List.iter print_endline
end
6 changes: 3 additions & 3 deletions tests/js/test.out.expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
21

Landmark reached:
ROOT 3
fib 0
main 1
ROOT
fib
main

0 comments on commit 22307d7

Please sign in to comment.