Noel Grandin
b14224fe97
loplugin:unusedmethods
...
using an idea from dtardon:
<dtardon> noelgrandin, hi. could you try to run the unusedmethods clang
plugin with "make build-nocheck"? that would catch functions that are
only used in tests. e.g., i just removed the whole o3tl::range class,
which has not been used in many years, but htere was a test for it...
<noelgrandin> dtardon, interesting idea! Sure, I can do that.
Change-Id: I5653953a426a2186a1e43017212d87ffce520387
Reviewed-on: https://gerrit.libreoffice.org/22041
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2016-02-08 06:08:14 +00:00
Stephan Bergmann
38e965fe0f
Use CPPUNIT_ASSERT_DOUBLES_EQUAL
...
...except when checking for infinity
Change-Id: If6e3b8965169cc615fa5d76422e1925866714936
2016-01-04 14:02:41 +01:00
Stephan Bergmann
efcbfa6f42
loplugin:cstylecast
...
Change-Id: I5ecd63d79e8be77879d3789c45079929696abe03
2016-01-04 13:44:48 +01:00
Dipangar Niranjar
0e41527fd5
tdf#96136 replace CPPUNIT_ASSERT with CPPUNIT_ASSERT_EQUAL
...
Change-Id: Ib45af8a56ac3adc428c530908cf1bbd95e9cc64c
Reviewed-on: https://gerrit.libreoffice.org/21065
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: jan iversen <jani@documentfoundation.org >
2016-01-04 11:40:41 +00:00
Stephan Bergmann
88ab9d4aa0
Get order of expected/actual args to CPPUNIT_ASSERT_EQUAL right
...
Change-Id: I0fa26417630991c6d07b5412fb579f9c222d09a6
2015-11-30 11:49:15 +01:00
Markus Mohrhard
36b658d389
generate better unit test assert message
...
Change-Id: Ibba7f18fefb4f2851472a6ae0b41447237a6b97f
Reviewed-on: https://gerrit.libreoffice.org/20270
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
2015-11-29 20:22:45 +00:00
Stephan Bergmann
39ddeb53c0
basic: Use appropriate OUString functions on string constants
...
Change-Id: I43f99ba6759b0f8f633af784beaec583dbab0b9e
2014-12-18 14:12:23 +01:00
Noel Grandin
86b44e8e78
fdo#38835 strip out OUString globals
...
Change-Id: I8bc386ffa88e31988bdc778a845403bec0772799
2014-12-05 15:07:17 +02:00
Norbert Thiebaud
8b308d510e
basic: include <> for external includes
...
Change-Id: I4715bbe853d60ef15f20a4d2441c688003ca568e
2013-11-11 22:37:24 -06:00
Eike Rathke
66a96c8274
clean up SbiScanner::NextSym() a little, fdo#70319 follow-up
...
Number recognition was suboptimal and didn't properly resync scan
positions after having detected an error.
Change-Id: I278fdaaf17ed40560785deaaad0e3412a249d90a
2013-10-15 12:52:15 +02:00
Eike Rathke
472ad8ba7e
work around crappy SbiScanner::NextSym(), fdo#70319
...
just to make test not fail that was wrong anyway
Change-Id: Ibbb8214b64be0e9a82e2bde406abdcfd2e84c734
2013-10-14 16:00:27 +02:00
Eike Rathke
cafa2b948b
added unit test for 10e308 math overflow
...
Change-Id: I492d991545239539d21fb59de3eccdd1ab56a9af
2013-03-21 19:44:12 +01:00
Julien Nabet
92e7d26641
coverity#982854 Assign instead of compare
...
Change-Id: I9ac6a537da3a945cc48be84559f9ce253a93cd47
2013-03-16 22:33:21 +01:00
Julien Nabet
f98e321698
coverity#982853 Assign instead of compare
...
Change-Id: I51df1f766314ea801ae33d6843b5ce6fc49445ac
2013-03-16 22:30:43 +01:00
Marcos Paulo de Souza
be2b3e51ed
Remove all rtl:: prefix and RTL_* from basic/qa/cppunit/test_scanner.cxx
...
Change-Id: Ie9bb6018955faa41c359d18c6b2c10b58fd20db9
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com >
Reviewed-on: https://gerrit.libreoffice.org/1512
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br >
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br >
2012-12-31 10:49:41 +00:00
Marcos Paulo de Souza
b2e5700d09
Remove rtl prefixes and some RTL_CONST* from basic
...
Change-Id: If15d7c97de5295ea7d7f341e6b34acbfc917218d
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com >
Reviewed-on: https://gerrit.libreoffice.org/1504
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br >
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br >
2012-12-29 15:45:21 +00:00
Michael Meeks
63c508e3e8
re-base on ALv2 code. Includes:
...
118568: switch to using ucpp
Patch contributed by Juergen Schmidt
http://svn.apache.org/viewvc?view=revision&revision=1209396
2012-07-18 09:29:19 +01:00
Michael Meeks
328e2263fb
targetted re-work of cppunit pieces.
2012-06-27 19:13:11 +01:00
Noel Power
14ced14a22
add missing licence ( populated from TEMPLATE.SOURCECODE.HEADER )
...
Change-Id: I088e8fef273a42ad3e1d87d249a998867c22b4c6
2012-05-14 15:41:07 +01:00
August Sodora
ed68d602f5
Comment out test that current fails on 64-bit systems
2012-01-14 19:21:01 -05:00
August Sodora
244382e62e
Add tests for hex/octal numbers for basic scanner
2012-01-14 18:39:58 -05:00
Caolán McNamara
1702bab54f
add mode-lines to some new files
2012-01-05 09:18:16 +00:00
August Sodora
df46bad0d1
Added some tests for basic/scanner
2011-12-05 19:00:42 -05:00
August Sodora
b97774aefa
Added regression test for scanner
2011-11-20 00:48:17 -05:00
August Sodora
c8f0503a1b
Cleanup GetSuffixType in basic scanner
2011-11-18 01:20:36 -05:00
Michael Meeks
e31496c938
misc trivial tweaks, and documentation addition
2011-10-21 10:08:58 +01:00
August Sodora
034350a509
String->OUString, with accompanying tests
2011-10-21 10:08:57 +01:00