Skip to content

Commit

Permalink
test(zencode): 馃И update pointer test to float
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Feb 22, 2024
1 parent 0c22a83 commit eeb388a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/zencode/table.bats
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Then print 'pointer'
and print 'dataFromEndpoint'
EOF
save_output 'pointer.out'
assert_output '{"dataFromEndpoint":{"cod":"200","count":"1","list":[{"clouds":{"all":"20"},"coord":{"lat":"43.766701","lon":"11.25"},"dt":1624277371,"id":"3.176959e+06","main":{"feels_like":"305.320007","humidity":"48","key_inside_list":"main","pressure":"1010","temp":"304.109985","temp_max":"304.820007","temp_min":"303.149994"},"name":"Florence","sys":{"country":"IT"},"weather":[{"description":"few clouds","icon":"02d","id":"801","main":"Clouds"}],"wind":{"deg":"0","speed":"2.06"}}],"message":"accurate"},"pointer":{"feels_like":"305.320007","humidity":"48","key_inside_list":"main","pressure":"1010","temp":"304.109985","temp_max":"304.820007","temp_min":"303.149994"}}'
assert_output '{"dataFromEndpoint":{"cod":"200","count":1,"list":[{"clouds":{"all":20},"coord":{"lat":43.7667,"lon":11.25},"dt":1624277371,"id":3176959.0,"main":{"feels_like":305.32,"humidity":48,"key_inside_list":"main","pressure":1010,"temp":304.11,"temp_max":304.82,"temp_min":303.15},"name":"Florence","sys":{"country":"IT"},"weather":[{"description":"few clouds","icon":"02d","id":801,"main":"Clouds"}],"wind":{"deg":0,"speed":2.06}}],"message":"accurate"},"pointer":{"feels_like":305.32,"humidity":48,"key_inside_list":"main","pressure":1010,"temp":304.11,"temp_max":304.82,"temp_min":303.15}}'
}

@test "pointer fails" {
Expand Down

0 comments on commit eeb388a

Please sign in to comment.