From f1b4af33accb1c8d8b1d1f7382d2dedf989b16c0 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 16 Jul 2020 19:50:09 +0200 Subject: [PATCH] tests: atof_test fix --- vlib/strconv/atof_test.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vlib/strconv/atof_test.v b/vlib/strconv/atof_test.v index 86b069c32d..be348a98cf 100644 --- a/vlib/strconv/atof_test.v +++ b/vlib/strconv/atof_test.v @@ -3,7 +3,6 @@ * String to float Test * **********************************************************************/ -import strconv fn test_atof() { // @@ -35,7 +34,7 @@ fn test_atof() { // check conversion case 1 string <=> string for c,x in src_num { // slow atof - assert strconv.atof64(src_num_str[c]).strlong() == x.strlong() + assert atof64(src_num_str[c]).strlong() == x.strlong() // quick atof @@ -56,7 +55,7 @@ fn test_atof() { // we don't test atof_quick beacuse we already know the rounding error for c,x in src_num_str { b := src_num[c].strlong() - a1 := strconv.atof64(x).strlong() + a1 := atof64(x).strlong() assert a1 == b }