Axel Kohlmeyer
3c99471df8
add a few more unit tests for functions in utils
2020-06-12 01:29:42 -04:00
Richard Berger
6cb5345cd0
Add optimized version of count_words for default whitespace chars
2020-06-11 13:37:22 -04:00
Axel Kohlmeyer
9945f73743
fix spelling in a few more files
2020-06-11 01:05:58 -04:00
Richard Berger
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
Richard Berger
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
Richard Berger
18bb4bfdc2
Merge remote-tracking branch 'akohlmey/unit-test-updates' into refactor-table-reading
2020-06-02 18:24:23 -04:00
Richard Berger
60f17e7397
Add filesystem utils functions
2020-06-02 14:11:09 -04:00
Axel Kohlmeyer
5c01c5c4af
make internal name for test consistent with external name
2020-06-02 07:41:10 -04:00
Axel Kohlmeyer
b9cec30c2b
add test for exceptions with incompatible format
2020-06-01 22:18:45 -04:00
Axel Kohlmeyer
c6d04343e3
add tests for custom large integer type conversions
2020-06-01 19:09:27 -04:00
Axel Kohlmeyer
644ef3da4c
add LAMMPS copyright header
2020-06-01 19:08:59 -04:00
Axel Kohlmeyer
005fe9db8b
add initial unit test for {fmt} testing only conversions frequently used by LAMMPS
2020-06-01 17:50:00 -04:00
Axel Kohlmeyer
88cedc2784
add a bunch of tests for utils::strmatch()
2020-05-31 10:36:44 -04:00
Axel Kohlmeyer
4a21ad7b3d
expand tests for valid and invalid numbers
2020-05-31 10:14:09 -04:00
Richard Berger
7ac0f869ef
Add ValueTokenizer
2020-05-20 15:53:50 -04:00
Richard Berger
46239e4577
Add utils::is_double and utils::is_integer
2020-05-20 15:53:41 -04:00
Richard Berger
9e3759d0fc
Add missing newlines
2020-05-20 15:53:29 -04:00
Richard Berger
db46521d64
Add utils::count_words and utils::trim_comment
2020-05-20 15:53:08 -04:00
Richard Berger
d41927b056
Add Tokenizer class
2020-05-20 15:49:02 -04:00