tlv: Use the encoding/decoding functions for "double" from ndn-cxx
refs: #4615
Change-Id: I0bde7085876646f272ee6006f4d3cfbd513d4ffd
diff --git a/tests/tlv/test-nexthops.cpp b/tests/tlv/test-nexthops.cpp
index 9e8158f..1714bbf 100644
--- a/tests/tlv/test-nexthops.cpp
+++ b/tests/tlv/test-nexthops.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2018, The University of Memphis,
+ * Copyright (c) 2014-2019, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -32,11 +32,12 @@
const uint8_t NexthopData[] =
{
// Header
- 0x8f, 0x1f,
+ 0x8f, 0x1d,
// Uri
- 0x8d, 0x11, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x6e, 0x65, 0x78, 0x74, 0x68, 0x6f, 0x70, 0x2f, 0x74, 0x6c, 0x76,
+ 0x8d, 0x11, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x6e, 0x65, 0x78, 0x74, 0x68, 0x6f,
+ 0x70, 0x2f, 0x74, 0x6c, 0x76,
// Cost
- 0x86, 0x0a, 0x86, 0x08, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0xfa, 0x3f
+ 0x86, 0x08, 0x3f, 0xfa, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66
};
BOOST_AUTO_TEST_CASE(NexthopEncode)
@@ -46,7 +47,6 @@
nexthops1.setCost(1.65);
const ndn::Block& wire = nexthops1.wireEncode();
-
BOOST_REQUIRE_EQUAL_COLLECTIONS(NexthopData,
NexthopData + sizeof(NexthopData),
wire.begin(), wire.end());