mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fixup! Add unit tests to util.cc and module_util.cc
This commit is contained in:
parent
67fcc9b5af
commit
b3e72a342f
1 changed files with 5 additions and 2 deletions
|
@ -1,10 +1,12 @@
|
|||
//
|
||||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include "module_util.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "3rdparty/doctest.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -22,6 +24,7 @@ TEST_CASE("module_util streq")
|
|||
|
||||
TEST_CASE("module_util extract_module_name")
|
||||
{
|
||||
// TODO: the following CHECK causes the linker to fail looking for a
|
||||
CHECK(extract_module_name("mod") == GLOBAL_MODULE_NAME);
|
||||
CHECK(extract_module_name("mod::") == "mod");
|
||||
CHECK(extract_module_name("mod::var") == "mod");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue