aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-08-17 08:31:31 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-08-17 08:32:30 +0000
commitf0ed492ca1f4befb5e35bda636fdb2e13e436c4a (patch)
treebbe351ad96ec06a8c6b12389f8af5c0154fa90d9 /docs
parent2f9a8c578382d137d4cc4f4ee0cdbcb16c202d1f (diff)
fix(core): Variables for GSO
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I6768f65551deb335ba7b9fc07bca164bca9381fe
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
ND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import framework import vpp_papi_provider F64_ONE = 1.0 class TestEndian(framework.VppTestCase): """TestEndian""" def test_f64_endian_value(self): try: rv = self.vapi.get_f64_endian_value(f64_one=F64_ONE) self.assertEqual(rv.f64_one_result, F64_ONE, "client incorrectly deserializes f64 values. " "Expected: %r. Received: %r." % ( F64_ONE, rv.f64_one_result)) except vpp_papi_provider.UnexpectedApiReturnValueError: self.fail('client incorrectly serializes f64 values.') def test_get_f64_increment_by_one(self): expected = 43.0 rv = self.vapi.get_f64_increment_by_one(f64_value=42.0) self.assertEqual(rv.f64_value, expected, 'Expected %r, received:%r.' % (expected, rv.f64_value))