Commit Graph

62 Commits

Author SHA1 Message Date
cfc86f7a2d add unit tests for new utils::strfind() function 2021-02-25 23:05:48 -05:00
0f07215a2b add utils::strdup() convenience function 2021-02-04 17:00:02 -05:00
fae6fef1ac add tests for DNAME/INAME argument references 2021-02-01 09:39:13 -05:00
2882208e0b must report index1 as 0 for type == ArgInfo::NONE 2021-01-31 22:05:33 -05:00
c1742aa3d1 add unit tests for ArgInfo class 2021-01-30 00:50:15 -05:00
72168d6780 add utility functions to detect UTF-8 characters and substitute with ASCII equivalents 2021-01-25 01:41:38 -05:00
569a000e6b reformat unittest sources with clang-format 2020-11-25 16:51:41 -05:00
b931501711 add utils::path_dirname() to complement utils::path_basename() 2020-10-23 20:40:18 -04:00
adf74b3a22 use https://lammps.sandia.gov based URLs consistently 2020-10-21 16:45:30 -04:00
e23774ed56 include "pointers.h" to avoid include file name conflicts when compiling with USER-VTK enabled 2020-10-13 15:26:38 -04:00
b176cdf28c remove trailing whitespace 2020-09-16 18:18:53 -04:00
a8a9fb6eb8 adapt unit test for Jacobi class 2020-09-16 18:17:23 -04:00
a3cc7581b1 rename test for memory pools 2020-09-08 15:12:08 -04:00
0ee7c5f434 add more MyPage test variants 2020-09-07 15:27:13 -04:00
ab5c81f7d6 refactor some more to reduce redundant code. 2020-09-07 08:57:37 -04:00
bbb81a8dd0 add unit tester for MyPage class 2020-09-07 08:33:05 -04:00
ceed9284c1 Merge branch 'master' into collected-small-changes 2020-09-04 13:32:47 -04:00
f19ce32bf5 a few more small tweaks 2020-09-04 09:42:11 -04:00
ce78be864a move date2num() convernience function from Universe class to utils namespace 2020-09-03 17:47:45 -04:00
7fca3b7a65 revert accidental change 2020-08-31 12:46:22 -04:00
0c7b9a7c63 update utils tester for API change in bound()/boundsbig() 2020-08-31 11:43:25 -04:00
5a22f4d7f2 support that LAMMPS_POTENTIALS is a real path variable with multiple entries, not just a single folder 2020-08-29 22:22:03 -04:00
7413dc783e add tokenizer tests for splitting path environment variables 2020-08-29 22:07:22 -04:00
8601e608ca add unit tests for utils::bounds() and utils::boundsbig() 2020-08-29 22:00:07 -04:00
4126ba24c1 Move timespec2seconds to utils 2020-08-03 16:54:53 -04:00
2ffb29f65e Merge remote-tracking branch 'origin/master' into refactor-reading 2020-08-03 11:50:23 -04:00
4b91ab0d23 add utils::trim() function to remove leading and trailing whitespace from string 2020-07-30 23:39:37 -04:00
c9dc5d90d2 Merge remote-tracking branch 'origin/master' into refactor-reading 2020-07-17 23:08:26 -04:00
0748b12472 when processing quoted strings, the quotes need to be removed 2020-07-17 13:58:15 -04:00
e6a8f3c8c0 use parenthesis to correct precedence 2020-07-11 13:10:37 -04:00
2c64809cd8 enlarge buffer for guessed file name 2020-07-02 23:35:25 -04:00
a524eaf424 add a few more tests 2020-07-02 10:27:35 -04:00
c3fe0e77c2 expose guesspath function and add unit test 2020-07-02 09:13:57 -04:00
c7a31aea97 force environment variable 2020-07-01 09:39:47 -04:00
22d8d0d0b0 add tests for potential file reader and untils functions 2020-06-25 08:00:04 -04:00
ee5be42026 avoid having to use external test runner script by parsing environment variables directly 2020-06-24 09:32:59 -04:00
14c22a004a Merge branch 'master' into use-clang-format-demo
# Conflicts:
#	unittest/force-styles/pair_style.cpp
#	unittest/utils/test_utils.cpp
2020-06-15 16:14:13 -04:00
0481184862 add utility function to get the units tag value from a potential file 2020-06-14 06:22:47 -04:00
9c3d108bbc enable aligning consecutive assignments 2020-06-13 02:05:13 -04:00
3db944decc apply clang-format settings to the c++ sources in the unittest tree 2020-06-13 01:54:58 -04:00
22ed175632 Merge pull request #2151 from akohlmey/move-ubuf-to-lmptype
Move definition(s) of union ubuf to lmptype.h
2020-06-12 05:51:41 -04:00
3c99471df8 add a few more unit tests for functions in utils 2020-06-12 01:29:42 -04:00
1e8ef99fa7 use compile time tests instead of runtime checks for skipping 64bit tests on 32bit integers 2020-06-11 19:17:17 -04:00
6cb5345cd0 Add optimized version of count_words for default whitespace chars 2020-06-11 13:37:22 -04:00
9945f73743 fix spelling in a few more files 2020-06-11 01:05:58 -04:00
81d937ee97 Performance optimization of Tokenizer
Reduces string allocations and removes std::vector from Tokenizer
Most processing now happens on-demand.
2020-06-11 00:22:04 -04:00
c1f6c004ca Add contains method to ValueTokenizer 2020-06-09 12:11:53 -04:00
9291d2a9d7 Simplify count_words, add trim_and_count_words
The original count_words function (before it was put into utils::) also trimmed
comments. For compatibility this behaviour was retained at first. However, due
to the name the trimming is not immediatly apparent and many times not
wanted.

Therefore, this commit replaces count_words with an implementation that
just does what it says. If a comment should be trimmed there is a
trim_comment function. For convenience, a trim_and_count_words function was
added and is now used where the old behaviour was needed.
2020-06-04 11:13:37 -04:00
18bb4bfdc2 Merge remote-tracking branch 'akohlmey/unit-test-updates' into refactor-table-reading 2020-06-02 18:24:23 -04:00
60f17e7397 Add filesystem utils functions 2020-06-02 14:11:09 -04:00