[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 102/151: Improve DOC for Scenario
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 102/151: Improve DOC for Scenario |
Date: |
Sat, 4 Feb 2017 17:14:31 +0000 (UTC) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 78423c971afb305a89cc7341a7b48b7214d2d960
Author: Rachel <address@hidden>
Date: Fri Dec 16 15:46:58 2016 +0100
Improve DOC for Scenario
---
scenario/test_parse_formula.php | 55 +++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/scenario/test_parse_formula.php b/scenario/test_parse_formula.php
new file mode 100644
index 0000000..b14a59e
--- /dev/null
+++ b/scenario/test_parse_formula.php
@@ -0,0 +1,55 @@
+<?
+//@description:Impress::check_formula test
+/*
+# check the Impress::check_formula and the parse_formula
+# This file is a part of NOALYSS under GPL
+# Author D. DE BONTRIDDER address@hidden
+*/
+
+include_once NOALYSS_INCLUDE.'/lib/class_impress.php';
+
+echo '<hr>';
+foreach ( array('1',
+ '(45+5)',
+ 'round([45])',
+ '$A=9',
+ '$S30=($F1 >=0)?$F1:0',
+
+ '[45%]',
+ '[50]*[51%]',
+ '$A1=[50]*[51%]',
+ '[50]*9',
+ '[50]*9.0',
+ '[50%]*9',
+ '$C1111=[50%]*9',
+ '$C1111=[50%]*9*$D1',
+ '$C10=[10%]',
+ '[50%]*9.0',
+ '[50%]*9.0 FROM=01.2004',
+ '[50%]*9.0FROM=01.2004',
+ 'system',
+ 'unlink',
+ 'ls -1')
+ as $a ) {
+ echo "Testing :".$a;
+ echo (Impress::check_formula($a)==false)?'Non valide ':'ok';
+
+ echo '<br>';
+
+ foreach (array('+','-','/') as $b ) {
+ $ee=str_replace('*',$b,$a);
+ echo "Testing :".$ee;
+ echo (Impress::check_formula($ee)==false)?'Non valide ':'ok';
+ echo '<br>';
+
+ }
+ for($e=0;$e<3;$e++) {
+ $a.="*".$a;
+ echo "Testing :".$a;
+ echo (Impress::check_formula($a)==false)?'Non valide ':'ok';
+ echo '<br>';
+
+ }
+ }
+
+?>
- [Noalyss-commit] [noalyss] 97/151: update of the config.inc.example file, (continued)
- [Noalyss-commit] [noalyss] 97/151: update of the config.inc.example file, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 94/151: Fix problem of accentuated char, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 105/151: Noalyss_SQL Fix bug in set and get fct, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 103/151: Timestamp instead of date, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 90/151: Improve Acc_Bilan::warning, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 87/151: Performance : improve VERIF , Improve Accounting check, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 92/151: Fix config.inc.php : add carriage return, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 106/151: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 85/151: Performance : improve VERIF , Affiche uniquement journaux incorrects, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 86/151: Performance : improve VERIF , Totaux Actif/Passif, Charge/Produit, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 102/151: Improve DOC for Scenario,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 108/151: Noalyss_SQL add function get_pk_value for getting the value of the PK, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 75/151: Scenario pour dév. de comptabilité analytique, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 70/151: sécurité Task #8 - Sécurité protection SQL, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 64/151: Clean code, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 79/151: PDF Operation ajout détail opération pour GrandLivre ANC , export des pièces avec tampon, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 81/151: syntax, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 88/151: remove debug info, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 93/151: Export PDF : check files properly, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 95/151: Problème htmlentities : charset par défaut différent entre version, Dany De Bontridder, 2017/02/04
- [Noalyss-commit] [noalyss] 91/151: Improve Performance Acc_Bilan::warning, Dany De Bontridder, 2017/02/04