From f6222594b6347b7527fb13e1fedec2cc9def862f Mon Sep 17 00:00:00 2001 From: Lukasz Stafiniak Date: Wed, 20 Mar 2024 21:51:50 +0100 Subject: [PATCH] Fix test flakiness (float point printing) --- test/test_expect_test.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_expect_test.ml b/test/test_expect_test.ml index 995ff4d..1c3879c 100644 --- a/test/test_expect_test.ml +++ b/test/test_expect_test.ml @@ -3580,7 +3580,7 @@ let%expect_test "flame graph" = close_in file; let output = [%expect.output] in let output = - Str.global_replace (Str.regexp {|[0-9]+\.[0-9]+%|}) "N.NNNN%" output + Str.global_replace (Str.regexp {|[0-9]+\.[0-9]*%|}) "N.NNNN%" output in print_endline output; [%expect @@ -3685,7 +3685,7 @@ let%expect_test "flame graph reduced ToC" = close_in file; let output = [%expect.output] in let output = - Str.global_replace (Str.regexp {|[0-9]+\.[0-9]+%|}) "N.NNNN%" output + Str.global_replace (Str.regexp {|[0-9]+\.[0-9]*%|}) "N.NNNN%" output in print_endline output; [%expect