fix #1352: avoid conversion to exponential notation

This commit is contained in:
debugtalk
2022-06-14 13:22:07 +08:00
parent 50c4c94100
commit 5a5b83fc89
13 changed files with 33 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-with-go-plugin",
"create_time": "2022-06-14T11:34:25.941159+08:00",
"create_time": "2022-06-14T13:19:05.262039+08:00",
"hrp_version": "v4.1.3"
}

View File

@@ -22,7 +22,7 @@
"variables": {
"foo1": "${ENV(USERNAME)}",
"foo2": "bar21",
"sum_v": "${sum_two_int(1, 2)}"
"sum_v": "${sum_two_int(10000000, 20000000)}"
},
"request": {
"method": "GET",
@@ -52,7 +52,7 @@
{
"check": "body.args.sum_v",
"assert": "equal",
"expect": "3",
"expect": "30000000",
"msg": "check body.args.sum_v"
},
{

View File

@@ -16,7 +16,7 @@ teststeps:
variables:
foo1: ${ENV(USERNAME)}
foo2: bar21
sum_v: "${sum_two_int(1, 2)}"
sum_v: "${sum_two_int(10000000, 20000000)}"
request:
method: GET
url: $base_url/get
@@ -29,7 +29,7 @@ teststeps:
validate:
- eq: ["status_code", 200]
- eq: ["body.args.foo1", "debugtalk"]
- eq: ["body.args.sum_v", "3"]
- eq: ["body.args.sum_v", "30000000"]
- eq: ["body.args.foo2", "bar21"]
-
name: post raw text

View File

@@ -1,5 +1,5 @@
{
"project_name": "demo-with-py-plugin",
"create_time": "2022-06-14T11:34:26.276891+08:00",
"create_time": "2022-06-14T13:19:05.680344+08:00",
"hrp_version": "v4.1.3"
}

View File

@@ -22,7 +22,7 @@
"variables": {
"foo1": "${ENV(USERNAME)}",
"foo2": "bar21",
"sum_v": "${sum_two_int(1, 2)}"
"sum_v": "${sum_two_int(10000000, 20000000)}"
},
"request": {
"method": "GET",
@@ -52,7 +52,7 @@
{
"check": "body.args.sum_v",
"assert": "equal",
"expect": "3",
"expect": "30000000",
"msg": "check body.args.sum_v"
},
{

View File

@@ -16,7 +16,7 @@ teststeps:
variables:
foo1: ${ENV(USERNAME)}
foo2: bar21
sum_v: "${sum_two_int(1, 2)}"
sum_v: "${sum_two_int(10000000, 20000000)}"
request:
method: GET
url: $base_url/get
@@ -29,7 +29,7 @@ teststeps:
validate:
- eq: ["status_code", 200]
- eq: ["body.args.foo1", "debugtalk"]
- eq: ["body.args.sum_v", "3"]
- eq: ["body.args.sum_v", "30000000"]
- eq: ["body.args.foo2", "bar21"]
-
name: post raw text