You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
376 B
13 lines
376 B
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
|
|
#include <leven.h>
|
|
|
|
namespace exopt {
|
|
namespace util [[gnu::visibility("internal")]] {
|
|
static_assert(leven_diff("hello world", "Hello World") == 2, "Levelshtein distance incorrect for non-matching strings");
|
|
static_assert(leven_diff("hello world", "hello world") == 0, "Levelshtein distance incorrect for matching strings");
|
|
}
|
|
}
|