Co-authored-by: Jade Lovelace <jadel@mercury.com> Change-Id: I026f271b07c9e27012f9ee1c16a2a1f4ba7f6ba3
16 lines
306 B
C++
16 lines
306 B
C++
#include "lix/libutil-rs.gen.hh"
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace nix {
|
|
TEST(rustSupport, testMultiplyArgs) {
|
|
TestMultiplyArgs const args{
|
|
.a = 20,
|
|
.b = 5,
|
|
};
|
|
|
|
uint64_t const product = test_multiply(args);
|
|
|
|
ASSERT_EQ(product, 20 * 5);
|
|
}
|
|
}
|