aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/stllike
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9814 from vespa-engine/balder/use-from_chars-in-streamHenning Baldersheim2019-06-201-12/+23
|\ | | | | Use std::from_chars in stream.
| * verify that whitespace is eaten.Henning Baldersheim2019-06-151-4/+15
| |
| * Use std::from_chars in stream.Henning Baldersheim2019-06-141-8/+8
| |
* | Replace GCC-only `std::_Identity` and `std::_Select1st` with own codeTor Brede Vekterli2019-06-171-1/+2
|/ | | | | | | Put in `stllike` submodule since it's technically hoisted from _a_ STL implementation...! `vespalib::Identity` can be replaced with `std::identity` once on a C++20 compiler.
* make allow-underflow common codeArne Juul2019-06-121-0/+17
|
* simplify testArne Juul2019-06-121-10/+2
|
* * no exception on underflow in strtof() and strtod()Arne Juul2019-06-121-4/+61
| | | | | | * still throw exception on overflow instead of returning HUGE_VAL * change exception message to make it readable * unit test float and double conversion from denormalized numbers
* Use normal unordered set.Tor Egge2019-06-062-6/+6
|
* Verify both signed char and unsigned charHenning Baldersheim2019-05-231-0/+2
|
* Use fundamental types in vespalib::asciistream operators.Tor Egge2019-03-121-10/+10
|
* Remove files used by old unit test runner.Tor Egge2019-02-192-4/+0
|
* Eliminate clang warning in vespalibTor Egge2019-02-061-2/+17
|
* Ensure that asciistream moves and swaps have expected semanticsTor Brede Vekterli2019-01-171-0/+19
| | | | | | | | | | | Defaulted move ctor and assignment will not have the expected behavior for the current _rbuf pointer when it points into a short-string optimized _wbuf buffer. I.e. it will be pointing into the buffer in the object that was just moved away from. Update swap() to give the correct semantics when either/both arguments point to a read-only buffer. Would previously reset _rbuf to _wbuf unconditionally, effectively forgetting the string that was referenced.
* Also test with hash_mapHenning Baldersheim2018-11-281-2/+34
|
* Randomize keysHenning Baldersheim2018-11-281-5/+9
|
* Use template args for the class, not on the find method.Henning Baldersheim2018-11-011-4/+4
|
* Use a templated find() to enable lookup without object creation when objects ↵Henning Baldersheim2018-11-011-3/+3
| | | | are comparable.
* GC HashMapHenning Baldersheim2018-09-281-0/+8
|
* Remove stringref::c_str()Tor Brede Vekterli2018-07-251-2/+2
| | | | | | | | | | | | | The expected semantics of c_str() (a null-terminated string) cannot be satisfied with a string reference, so remove the function entirely to prevent people from using it in buggy ways. Replaces c_str() with data() in places where it is presumed safe, otherwise constructs temporary string instances. Certain callsites have been de-stringref'd in favor of regular strings, in particular where C APIs have been transitively called. The vast majority of these were called with string parameters anyway, so should not cause much extra allocation.
* Handle insertion of non-copyable keys and values in hash map.Tor Egge2018-05-271-0/+39
| | | | Handle insertion of non-copyable keys in hash set.
* Correct function castHenning Baldersheim2018-05-111-2/+3
|
* Add an explicitt test that begin() == end() on empty hashtables.Henning Baldersheim2018-01-081-0/+7
|
* Add a test for for_eachHenning Baldersheim2018-01-031-4/+23
|
* Include what you need.Henning Baldersheim2017-08-182-0/+2
|
* Update copyright headersJon Bratseth2017-06-148-8/+8
|
* Revert "Update copyright headers"Jon Bratseth2017-06-148-8/+8
|
* Update copyright headersJon Bratseth2017-06-148-8/+8
|
* Revert "Copyright header"Jon Bratseth2017-06-138-8/+8
|
* Copyright headerJon Bratseth2017-06-138-8/+8
|
* Checkpount for removing fastos from testsHenning Baldersheim2017-06-013-3/+0
|
* Due to c++17 eval order in gcc 7 we need to be more careful.Henning Baldersheim2017-05-061-1/+2
| | | | | From gcc 7 release notes. "The C++17 evaluation order requirements can be selected in other modes with the -fstrong-eval-order flag, or disabled in C++17 mode with -fno-strong-eval-order."
* Add override in vespalib moduleHenning Baldersheim2017-04-041-5/+2
|
* Add equality codeHenning Baldersheim2016-12-151-0/+1
|
* Make some more test build too.Henning Baldersheim2016-12-152-10/+6
|
* Make it compile with gcc 6Henning Baldersheim2016-12-152-2/+2
|
* Add test for new docid sorting.Henning Baldersheim2016-12-121-1/+1
|
* Add asciistream::StateSaver and use it in BucketSpace/BucketIdBjørn Christian Seime2016-11-221-0/+17
|
* Removed TestApp::GetSourceDirectoryArnstein Ressem2016-11-021-1/+2
|
* Aressem/cmake more out of source tests (#441)Arnstein Ressem2016-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vespalib tests run out of source. * staging_vespalib run tests out of source. * fastos tests run out of source. * Fixed storage tests out of source. * Fixed some of the config tests. * config* tests run out of source. * document_* tests run out of source. * documentapi_ tests run out of source. * Fixed fsa out of source tests. * Fix jrt_test out of source. * More tests run out of source. * Fix some slobrok and messagebus tests. * More fixes for out of source tests. * Done with first pass of regular tests out of source. * Only use SOURCE_DIRECTORY in a limited set of places. * Fix some remaining tests. * Some cleanups. * No need for extra slash.
* Also check first character in vespalib::stringref::rfind method.Tor Egge2016-08-101-0/+5
|
* Declared test executables as tests with TEST parameterVegard Sjonfjell2016-06-161-5/+5
|
* PublishJon Bratseth2016-06-1512-0/+2053