lean2/src/tests/util/bitap_fuzzy_search.cpp
2014-09-05 18:01:09 -07:00

20 lines
449 B
C++

/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/test.h"
#include "util/bitap_fuzzy_search.h"
using namespace lean;
static void tst1() {
bitap_fuzzy_search matcher("dicr", 1);
lean_assert(matcher.match("discriminate"));
}
int main() {
save_stack_info();
tst1();
return has_violations() ? 1 : 0;
}