Skip to content

Commit 57eff20

Browse files
Merge pull request #471 from skmcgrail/improveTestCases
Modify float and double values to have explicit decimal values
2 parents 319dee7 + 0725a1e commit 57eff20

File tree

6 files changed

+40
-40
lines changed

6 files changed

+40
-40
lines changed

smithy-aws-protocol-tests/model/restJson1/http-headers.smithy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
5757
"X-Short": "123",
5858
"X-Integer": "123",
5959
"X-Long": "123",
60-
"X-Float": "1.0",
61-
"X-Double": "1.0",
60+
"X-Float": "1.1",
61+
"X-Double": "1.1",
6262
"X-IntegerList": "1, 2, 3",
6363
},
6464
body: "",
@@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
6767
headerShort: 123,
6868
headerInteger: 123,
6969
headerLong: 123,
70-
headerFloat: 1.0,
71-
headerDouble: 1.0,
70+
headerFloat: 1.1,
71+
headerDouble: 1.1,
7272
headerIntegerList: [1, 2, 3],
7373
}
7474
},
@@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
150150
"X-Short": "123",
151151
"X-Integer": "123",
152152
"X-Long": "123",
153-
"X-Float": "1.0",
154-
"X-Double": "1.0",
153+
"X-Float": "1.1",
154+
"X-Double": "1.1",
155155
"X-IntegerList": "1, 2, 3",
156156
},
157157
body: "",
@@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
160160
headerShort: 123,
161161
headerInteger: 123,
162162
headerLong: 123,
163-
headerFloat: 1.0,
164-
headerDouble: 1.0,
163+
headerFloat: 1.1,
164+
headerDouble: 1.1,
165165
headerIntegerList: [1, 2, 3],
166166
}
167167
},

smithy-aws-protocol-tests/model/restJson1/http-labels.smithy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
2626
documentation: "Sends a GET request that uses URI label bindings",
2727
protocol: restJson1,
2828
method: "GET",
29-
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
29+
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
3030
body: "",
3131
params: {
3232
string: "string",
3333
short: 1,
3434
integer: 2,
3535
long: 3,
36-
float: 4.0,
37-
double: 5.0,
36+
float: 4.1,
37+
double: 5.1,
3838
boolean: true,
3939
timestamp: 1576540098
4040
}

smithy-aws-protocol-tests/model/restJson1/http-query.smithy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
5151
"IntegerSet=2",
5252
"IntegerSet=3",
5353
"Long=4",
54-
"Float=1",
55-
"Double=1",
56-
"DoubleList=1.0",
57-
"DoubleList=2.0",
58-
"DoubleList=3.0",
54+
"Float=1.1",
55+
"Double=1.1",
56+
"DoubleList=1.1",
57+
"DoubleList=2.1",
58+
"DoubleList=3.1",
5959
"Boolean=true",
6060
"BooleanList=true",
6161
"BooleanList=false",
6262
"BooleanList=true",
63-
"Timestamp=1",
63+
"Timestamp=1970-01-01T00%3A00%3A01Z",
6464
"TimestampList=1970-01-01T00%3A00%3A01Z",
6565
"TimestampList=1970-01-01T00%3A00%3A02Z",
6666
"TimestampList=1970-01-01T00%3A00%3A03Z",
@@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
7979
queryIntegerList: [1, 2, 3],
8080
queryIntegerSet: [1, 2, 3],
8181
queryLong: 4,
82-
queryFloat: 1,
83-
queryDouble: 1,
84-
queryDoubleList: [1.0, 2.0, 3.0],
82+
queryFloat: 1.1,
83+
queryDouble: 1.1,
84+
queryDoubleList: [1.1, 2.1, 3.1],
8585
queryBoolean: true,
8686
queryBooleanList: [true, false, true],
8787
queryTimestamp: 1,

smithy-aws-protocol-tests/model/restXml/http-headers.smithy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
5757
"X-Short": "123",
5858
"X-Integer": "123",
5959
"X-Long": "123",
60-
"X-Float": "1.0",
61-
"X-Double": "1.0",
60+
"X-Float": "1.1",
61+
"X-Double": "1.1",
6262
"X-IntegerList": "1, 2, 3",
6363
},
6464
body: "",
@@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
6767
headerShort: 123,
6868
headerInteger: 123,
6969
headerLong: 123,
70-
headerFloat: 1.0,
71-
headerDouble: 1.0,
70+
headerFloat: 1.1,
71+
headerDouble: 1.1,
7272
headerIntegerList: [1, 2, 3],
7373
}
7474
},
@@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
150150
"X-Short": "123",
151151
"X-Integer": "123",
152152
"X-Long": "123",
153-
"X-Float": "1.0",
154-
"X-Double": "1.0",
153+
"X-Float": "1.1",
154+
"X-Double": "1.1",
155155
"X-IntegerList": "1, 2, 3",
156156
},
157157
body: "",
@@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
160160
headerShort: 123,
161161
headerInteger: 123,
162162
headerLong: 123,
163-
headerFloat: 1.0,
164-
headerDouble: 1.0,
163+
headerFloat: 1.1,
164+
headerDouble: 1.1,
165165
headerIntegerList: [1, 2, 3],
166166
}
167167
},

smithy-aws-protocol-tests/model/restXml/http-labels.smithy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
2626
documentation: "Sends a GET request that uses URI label bindings",
2727
protocol: restXml,
2828
method: "GET",
29-
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
29+
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
3030
body: "",
3131
params: {
3232
string: "string",
3333
short: 1,
3434
integer: 2,
3535
long: 3,
36-
float: 4.0,
37-
double: 5.0,
36+
float: 4.1,
37+
double: 5.1,
3838
boolean: true,
3939
timestamp: 1576540098
4040
}

smithy-aws-protocol-tests/model/restXml/http-query.smithy

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
5151
"IntegerSet=2",
5252
"IntegerSet=3",
5353
"Long=4",
54-
"Float=1",
55-
"Double=1",
56-
"DoubleList=1.0",
57-
"DoubleList=2.0",
58-
"DoubleList=3.0",
54+
"Float=1.1",
55+
"Double=1.1",
56+
"DoubleList=1.1",
57+
"DoubleList=2.1",
58+
"DoubleList=3.1",
5959
"Boolean=true",
6060
"BooleanList=true",
6161
"BooleanList=false",
6262
"BooleanList=true",
63-
"Timestamp=1",
63+
"Timestamp=1970-01-01T00%3A00%3A01Z",
6464
"TimestampList=1970-01-01T00%3A00%3A01Z",
6565
"TimestampList=1970-01-01T00%3A00%3A02Z",
6666
"TimestampList=1970-01-01T00%3A00%3A03Z",
@@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
7979
queryIntegerList: [1, 2, 3],
8080
queryIntegerSet: [1, 2, 3],
8181
queryLong: 4,
82-
queryFloat: 1,
83-
queryDouble: 1,
84-
queryDoubleList: [1.0, 2.0, 3.0],
82+
queryFloat: 1.1,
83+
queryDouble: 1.1,
84+
queryDoubleList: [1.1, 2.1, 3.1],
8585
queryBoolean: true,
8686
queryBooleanList: [true, false, true],
8787
queryTimestamp: 1,

0 commit comments

Comments
 (0)