From cc965a853efc5b80f2bd5f8aa2e6cab27011d8fb Mon Sep 17 00:00:00 2001 From: kampersanda Date: Sat, 11 Nov 2017 20:58:38 +0900 Subject: [PATCH] Change file names etc --- src/{testTrie.cpp => tries_test.cpp} | 4 ++-- src/{testVector.cpp => vectors_test.cpp} | 0 src/xcdat.hpp | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) rename src/{testTrie.cpp => tries_test.cpp} (99%) rename src/{testVector.cpp => vectors_test.cpp} (100%) create mode 100644 src/xcdat.hpp diff --git a/src/testTrie.cpp b/src/tries_test.cpp similarity index 99% rename from src/testTrie.cpp rename to src/tries_test.cpp index 9eea59c..3bb79bc 100644 --- a/src/testTrie.cpp +++ b/src/tries_test.cpp @@ -75,7 +75,7 @@ void test_basic_operations(const Trie& trie, const std::vector& keys, for (auto& key : keys) { const auto id = trie.lookup(key.ptr, key.length); - assert(id != kNotFound); + assert(id != NOT_FOUND); std::vector ret; trie.access(id, ret); @@ -86,7 +86,7 @@ void test_basic_operations(const Trie& trie, const std::vector& keys, for (auto& other : others) { const auto id = trie.lookup(other.ptr, other.length); - assert(id == kNotFound); + assert(id == NOT_FOUND); } } diff --git a/src/testVector.cpp b/src/vectors_test.cpp similarity index 100% rename from src/testVector.cpp rename to src/vectors_test.cpp diff --git a/src/xcdat.hpp b/src/xcdat.hpp new file mode 100644 index 0000000..7a46575 --- /dev/null +++ b/src/xcdat.hpp @@ -0,0 +1,8 @@ +// +// Created by Shunsuke Kanda on 2017/11/10. +// + +#ifndef XCDAT_XCDAT_HPP +#define XCDAT_XCDAT_HPP + +#endif //XCDAT_XCDAT_HPP