Noel Power
fbf8ae8241
fix for fdo#62323 fix duplicated and wrong tests
...
Change-Id: I73dc238f7de59367a0a9d00e5421ea6675b4f556
2013-08-20 09:12:59 +01:00
Noel Power
4c9a08e78b
fix for fdo#62323 bad conversion of Hex strings for certain values
...
Basic hex literals are basic Integer ( e.g. 4 byte ) types with
-2,147,483,648 through 2,147,483,647 range. Interally the scanner
was using a long to form/scan the literal, this led to bad behaviour
on 64bit linux ( where normally long -> 8 bytes )
Change-Id: I1d0fcc55ed0eda636da1445329737d1684e69f33
2013-08-20 08:59:54 +01:00
Julien Nabet
a0c86b527f
typo length
...
Change-Id: Idb698e0fc47bfb50db1127edbec4ee92c5b420f3
2013-06-01 00:43:26 +02:00
Michael Meeks
72e5d0c8fb
Move to MPLv2 license headers, with ESC decision and author's permission.
2013-04-30 13:34:06 +01:00
Luboš Luňák
1946794ae0
mass removal of rtl:: prefixes for O(U)String*
...
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Eike Rathke
876c619b94
new module i18nlangtag
...
Moved portions from module i18npool, all of former i18nisolang1 library
that now is i18nlangtag. Included are languagetag, isolang and mslangid.
This i18nlangtag code is now even used by module comphelper, so
disentangling i18npool and making this an own module was needed to not
create circular module dependencies.
Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05 19:10:48 +02:00
Eike Rathke
cafa2b948b
added unit test for 10e308 math overflow
...
Change-Id: I492d991545239539d21fb59de3eccdd1ab56a9af
2013-03-21 19:44:12 +01:00
Noel Power
f69acf929b
another variation of the localised Cdbl test
...
Change-Id: Icf6dd7428cb88f1891c6d816a24a4126ea2cc135
2013-03-21 11:33:53 +00:00
Noel Power
bc3a099974
tweak basic_coverage test to support locale specific testing
...
in basic some function results are influenced by locale, now
in the basic_coverage directory you can have sub dirs ( named
by the proper locale e.g. de-DE etc. ) and any macros found
there will be run in the desired locale
Change-Id: I625ee58d37493f83a15a62214bde6708e8fa75f7
2013-03-20 18:46:21 +00:00
Thomas Arnhold
5bb4a2ba1d
further OUString cleanup
...
Change-Id: I19954ee5976cb881a5fe73a889c8e04a19b14eb6
2013-03-19 14:18:10 +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
Noel Power
b279360e45
unittest and test data for bnc#809017
...
Change-Id: I3ccae692db44bb3ce41b371f0b511a9db7181bf4
2013-03-15 17:24:13 +00:00
Noel Power
54d7050138
remove some rtl:: and RTL_CONSTASCII_USTRINGPARAM foo
...
Change-Id: I68e2891999f306865d00b33fdfef3bc539a34e93
2013-03-11 17:32:53 +00:00
Noel Power
0f7798d862
unit tests and data for bnc#805071
...
Change-Id: I36fefa280ee922cbade676c951b753e632c9d8bb
2013-03-11 17:32:53 +00:00
Noel Power
46bab17e6d
remove duplicate file loading from basic_coverage ( now in MacroSnippet )
...
Change-Id: I1b19fec59419575fcf09d79986b6bac73ea51c9a
2013-03-08 17:41:45 +00:00
Noel Power
4596120336
fix WAE mbError unused
...
Change-Id: I03bae6808008dcb0b53b1e816f3fe84739036773
2013-03-08 12:16:35 +00:00
Noel Power
76c3184813
Add some stand alone vba specific tests ( mostly vba only functions )
...
Change-Id: I137e93a8af67b7eec4c51348caf3d0d03dbbce73
2013-03-07 16:27:35 +00:00
Noel Power
fea9b3a99a
finally remove no long needed BasicTestBase
...
Change-Id: Ic1522b0c3a292af061f5777e06e796dd82884fbf
2013-03-07 10:56:46 +00:00
Noel Power
20f12a1d7a
Nested_Struct should really inherit from test::BootstrapFixture
...
Change-Id: I06255940f41c32493187d1ec847f7238fef4e9f8
2013-03-07 10:56:45 +00:00
Noel Power
8534787f95
adapt existing tests to use MacroSnipper helper class
...
Change-Id: I50980d9510b82277a5da04cc4f6c1d3ec8e7c756
2013-03-07 10:56:45 +00:00
Noel Power
49417b0b68
use "doUnitTest" as the method to search for, tweak error reporting
...
Change-Id: I0c0f4ce1304b561bf94af5444c83d8920062568b
2013-03-07 10:56:44 +00:00
Noel Power
a9fc6ee7dc
Create new Macro helper class to help invoking macros for unittests
...
Change-Id: Icc3cbfc3eae6ade037960497e7fe2addf1912897
2013-03-07 10:56:44 +00:00
Stephan Bergmann
ef8a6be49a
Do not CPPUNIT_FAIL (which throws exceptions) from a destructor
...
...this is a sure way to std::terminate
Change-Id: I8753b1b1d6594829ea529462aa0369e4f2f623d4
2013-03-05 21:26:30 +01:00
Noel Power
0ee3d79b98
blind wae fix for PPUNIT_ASSERT_EQUAL
...
Change-Id: I0842e354fb766ebbbf2cff57a410a38fb8b8d3b1
2013-02-11 13:59:08 +00:00
Noel Power
6865445a5e
fix basic access to nested uno structures fdo#60117
...
Although basic might appear to correctly change nested struct elements
fdo#60117 shows that basic can be fooled ( and even the watch(ed) variable
in the debugger shows the expected values ). The problem stems from the
fact that the uno object held by basic isn't infact modified when changed
via the introspection uno service.
Additionally pimp the existing tests to check the actual uno struct to see
if the changes made are *really* reflected in the object
Change-Id: Iff007e17df87148ea81e69d3567c8cf9857fdcaa
2013-02-11 12:23:38 +00:00
Noel Power
6d0f1f6639
fix for fdo#60065
...
squash errors trying to gain object for rhs ( where no object yet exists (
Change-Id: I81548d1c6a32f0445dc18e31c84c3df85163ed45
2013-02-05 10:36:05 +00: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
Norbert Thiebaud
b68a0f6595
basic add a generic unit test fixture
...
basic_coverage is a generic unit test that scan
qa/basic_coverage/*
each file there is supposed to be a well formed Basic script
that define as least a Function doUnitTest as Integer
that return 1 if OK, 0 if not OK
Change-Id: I6c3cfac1e7ce4748f46c04344102a0eff69b6a49
2012-11-03 20:24:28 -05:00
Stephan Bergmann
cdd7e25a5b
These tests do not need the UCB
...
Change-Id: Ic5cd29efc01df5c77a7b4619f3e0cddb483817a6
2012-09-17 13:35:54 +02: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
Noel Power
0996c0d319
make unoCheckStruct uglier but detect unfixed type assignment + add new tests
...
Change-Id: I6160e7d1abeeda1ea89e2fe15a9155041f2e5adb
2012-07-05 19:31:16 +01:00
Noel Power
8e9e166d35
fix missing makefile, also add a further test to test_nested_struct.cxx
...
Change-Id: I7da88595fd3024f72b260267e34200375358e401
2012-07-05 15:03:11 +01:00
Noel Power
cac7e7cdc2
split out some common basic test stuff, add intial nested struct test
...
Change-Id: I8da6b3166e40e92c31ee001ce19938f286e057b9
2012-07-05 13:56:42 +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
Noel Power
d7149abc77
add simple basic runtime test
...
Change-Id: If8742cb174aa1d017763d3ba42807ac4cf6c7420
2012-05-14 13:59:09 +01:00
Noel Power
d87676da22
simple compile test for use of 'Enable' in a Dim statement
...
Change-Id: I051dbb5cd56fe61e2b0aea1184dcdb03c6413834
2012-05-14 12:01:08 +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