Skip to content

Commit 9253552

Browse files
committed
fix: boost variant test
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
1 parent e034540 commit 9253552

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

test/CMakeLists.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ target_link_libraries(scale_boost_variant_test
118118
scale
119119
)
120120

121-
#addtest(scale_variant_test
122-
# scale_std_variant_test.cpp
123-
# scale_boost_variant_test.cpp
124-
#)
125-
#target_link_libraries(scale_variant_test
126-
# scale
127-
#)
128-
129121
addtest(scale_pair_test
130122
scale_pair_test.cpp
131123
)
@@ -182,6 +174,13 @@ target_link_libraries(scale_sptr_and_refs_test
182174
scale
183175
)
184176

177+
addtest(scale_tagged_test
178+
scale_tagged_test.cpp
179+
)
180+
target_link_libraries(scale_tagged_test
181+
scale
182+
)
183+
185184
if (CUSTOM_CONFIG_SUPPORT)
186185
addtest(scale_tune_test
187186
scale_tune_test.cpp

test/scale_boost_variant_test.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
#ifdef HAS_BOOST_VARIANT
1414

1515
using scale::ByteArray;
16-
using scale::decode;
17-
using scale::encode;
18-
using Encoder = scale::Encoder<scale::backend::ToBytes>;
19-
using Decoder = scale::Decoder<scale::backend::FromBytes>;
16+
using scale::impl::memory::decode;
17+
using scale::impl::memory::encode;
2018

2119
using Testee = boost::variant<uint8_t, uint32_t>;
2220

0 commit comments

Comments
 (0)