36#include <gtest/gtest.h>
47 module.name = "math.aw";
48 module.exports.append({Compiler_Module_Export_Kind::Function, "add", {}});
49 module.exports.append({Compiler_Module_Export_Kind::Global, "answer", {}});
50 modules.
append(std::move(module));
53 EXPECT_NE(text.find(
"ModuleMetadata"), std::string::npos);
54 EXPECT_NE(text.find(
"Module(math.aw)"), std::string::npos);
55 EXPECT_NE(text.find(
"Function(add)"), std::string::npos);
56 EXPECT_NE(text.find(
"Global(answer)"), std::string::npos);
T & append()
Allocate a new entry to the end of array.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Main namespace for Aleph-w library functions.
std::string compiler_render_module_metadata(const DynArray< Compiler_Module_Metadata > &modules)
Renders one deterministic text artifact for module metadata.