Re: [PATCH v2 1/2] perf expr: Test parsing of floating point numbers
From: Arnaldo Carvalho de Melo
Date: Wed May 13 2020 - 11:39:53 EST
Em Tue, May 12, 2020 at 11:27:51PM -0700, Ian Rogers escreveu:
> Add test for fix in:
> commit 5741da3dee4c ("perf expr: Parse numbers as doubles")
>
> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
> ---
> tools/perf/tests/expr.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/perf/tests/expr.c b/tools/perf/tests/expr.c
> index f9e8e5628836..3f742612776a 100644
> --- a/tools/perf/tests/expr.c
> +++ b/tools/perf/tests/expr.c
> @@ -39,6 +39,7 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
> ret |= test(&ctx, "min(1,2) + 1", 2);
> ret |= test(&ctx, "max(1,2) + 1", 3);
> ret |= test(&ctx, "1+1 if 3*4 else 0", 2);
> + ret |= test(&ctx, "1.1 + 2.1", 3.2);
>
> if (ret)
> return ret;
> --
> 2.26.2.645.ge9eca65c58-goog
Applied.
- Arnaldo