utils: add Regex::replace + unit tests
This commit is contained in:
@ -16,22 +16,22 @@
|
||||
|
||||
|
||||
lib_mu_utils=static_library('mu-utils', [
|
||||
'mu-command-handler.cc',
|
||||
'mu-logger.cc',
|
||||
'mu-option.cc',
|
||||
'mu-readline.cc',
|
||||
'mu-sexp.cc',
|
||||
'mu-test-utils.cc',
|
||||
'mu-utils.cc',
|
||||
'mu-utils-file.cc'],
|
||||
dependencies: [
|
||||
glib_dep,
|
||||
gio_dep,
|
||||
config_h_dep,
|
||||
readline_dep
|
||||
],
|
||||
include_directories: include_directories(['.','..']),
|
||||
install: false)
|
||||
'mu-command-handler.cc',
|
||||
'mu-logger.cc',
|
||||
'mu-option.cc',
|
||||
'mu-readline.cc',
|
||||
'mu-sexp.cc',
|
||||
'mu-test-utils.cc',
|
||||
'mu-utils-file.cc',
|
||||
'mu-utils.cc'
|
||||
], dependencies: [
|
||||
glib_dep,
|
||||
gio_dep,
|
||||
config_h_dep,
|
||||
readline_dep
|
||||
], include_directories:
|
||||
include_directories(['.','..']),
|
||||
install: false)
|
||||
|
||||
lib_mu_utils_dep = declare_dependency(
|
||||
link_with: lib_mu_utils,
|
||||
@ -47,6 +47,12 @@ test('test-sexp',
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, lib_mu_utils_dep]))
|
||||
|
||||
test('test-regex',
|
||||
executable('test-regex', 'mu-regex.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, lib_mu_utils_dep]))
|
||||
|
||||
test('test-command-handler',
|
||||
executable('test-command-handler', 'mu-command-handler.cc',
|
||||
install: false,
|
||||
|
||||
Reference in New Issue
Block a user