From a989e017fe03b2d9e24d58560b293bbb4decd1ee Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 16 Jul 2020 19:41:01 +0200 Subject: [PATCH] tests: fix f32_f64_to_string_test.v --- vlib/strconv/f32_f64_to_string_test.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vlib/strconv/f32_f64_to_string_test.v b/vlib/strconv/f32_f64_to_string_test.v index 54aad31c2b..8b7ab88f2a 100644 --- a/vlib/strconv/f32_f64_to_string_test.v +++ b/vlib/strconv/f32_f64_to_string_test.v @@ -3,7 +3,7 @@ * Float to string Test * **********************************************************************/ -import strconv.ftoa +import strconv import math union Ufloat32 { @@ -140,7 +140,7 @@ fn test_float_to_str() { // test f32 for c,x in test_cases_f32 { println(x) - s := ftoa.f32_to_str(x,8) + s := strconv.f32_to_str(x,8) s1 := exp_result_f32[c] //println("$s1 $s") assert s == s1 @@ -148,7 +148,7 @@ fn test_float_to_str() { // test f64 for c,x in test_cases_f64 { - s := ftoa.f64_to_str(x,17) + s := strconv.f64_to_str(x,17) s1 := exp_result_f64[c] //println("$s1 $s") assert s == s1 @@ -156,11 +156,11 @@ fn test_float_to_str() { // test long format for exp := 1 ; exp < 120 ; exp++ { - a := ftoa.f64_to_str_l(("1e"+exp.str()).f64()) + a := strconv.f64_to_str_l(("1e"+exp.str()).f64()) //println(a) assert a.len == exp + 1 - b := ftoa.f64_to_str_l(("1e-"+exp.str()).f64()) + b := strconv.f64_to_str_l(("1e-"+exp.str()).f64()) //println(b) assert b.len == exp + 2 }