Skip to content

Commit

Permalink
Item2301: SSP unit tests
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@5497 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Nov 12, 2009
1 parent f5348f0 commit d21cd08
Show file tree
Hide file tree
Showing 4 changed files with 631 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SpreadSheetPlugin/data/System/SpreadSheetPlugin.txt
Expand Up @@ -198,7 +198,7 @@ Conventions for Syntax:
* The =precision= indicates the the number of digits after the dot
* Syntax: ==$FORMAT( type, prec, number )==
* Example: ==%<nop>CALC{"$FORMAT(COMMA, 2, 12345.6789)"}%== returns ==12,345.68==
* Example: ==%<nop>CALC{"$FORMAT(DOLLAR, 2, 12345.67)"}%== returns ==$12,345.68==
* Example: ==%<nop>CALC{"$FORMAT(DOLLAR, 2, 12345.67)"}%== returns ==$12,345.67==
* Example: ==%<nop>CALC{"$FORMAT(KB, 2, 1234567)"}%== returns ==1205.63 KB==
* Example: ==%<nop>CALC{"$FORMAT(MB, 2, 1234567)"}%== returns ==1.18 MB==
* Example: ==%<nop>CALC{"$FORMAT(KBMB, 2, 1234567)"}%== returns ==1.18 MB==
Expand Down Expand Up @@ -771,6 +771,8 @@ Note that the =DONTSPACE= global preference overrides the =SPREADSHEETPLUGIN_DON
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- specify latest version first -->&nbsp; |
| 10 Nov 2009: | Added unit tests |
| 27 Oct 2009: | Foswikitask:Item2301: Fixed $LISTJOIN() to accept an empty separator |
| 20 Sep 2009: | Minor documentation update. trunk and release branch code synced (mainly perltidy - all functional changes have been in sync). |
| 17 Sep 2009: | Foswikitask:Item2087: SpreadSheetPlugin forgets about zeros being floats as well |
| 11 May 2009: | Fixed the calculation of WORKINGDAYS. Changed the default behavior of TIME back to not converting dates to GMT as this creates surprising effects for users living to the east of Greenwich. Added SPREADSHEETPLUGIN_TIMEISLOCAL so users depending on the old behavior keep the old behavior if TIME. Added the feature 'local' to TIME so conversion behavior can be used on demand. |
Expand Down
2 changes: 1 addition & 1 deletion SpreadSheetPlugin/lib/Foswiki/Plugins/SpreadSheetPlugin.pm
Expand Up @@ -32,7 +32,7 @@ use vars qw(
);

our $VERSION = '$Rev$';
our $RELEASE = '20 Sep 2009';
our $RELEASE = '10 Nov 2009';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION =
'Add spreadsheet calculations like "$SUM($ABOVE())" to Foswiki tables and other topic text';
Expand Down
@@ -0,0 +1,6 @@
package SpreadSheetPluginSuite;
use base 'Unit::TestSuite';

sub include_tests { return 'SpreadSheetPluginTests' };

1;

0 comments on commit d21cd08

Please sign in to comment.