[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 6a5233a 07/11: Added failing test for bookkee
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 6a5233a 07/11: Added failing test for bookkeeping of multiple chained assignments |
Date: |
Sat, 18 Sep 2021 16:22:45 -0400 (EDT) |
branch: externals/phps-mode
commit 6a5233a4fc8f85b2032ed7d1f7b0a80c3447d1b8
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added failing test for bookkeeping of multiple chained assignments
---
test/phps-mode-test-lex-analyzer.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/phps-mode-test-lex-analyzer.el
b/test/phps-mode-test-lex-analyzer.el
index 33d7e70..223c7e0 100644
--- a/test/phps-mode-test-lex-analyzer.el
+++ b/test/phps-mode-test-lex-analyzer.el
@@ -1601,6 +1601,14 @@
(phps-mode-test--hash-to-list (phps-mode-lex-analyzer--get-bookkeeping) t)
'((" class There id $variable" 1) ((33 42) 1) (" class There id
$variable2" 1) ((67 77) 1) (" class There id $variable3" 1) ((98 108) 1) ("
class There static id $variable4" 1) ((129 139) 1) (" class There static id
$variable5" 1) ((171 181) 1) (" class There static id $variable6" 1) ((209 219)
1) (" class There function here id $this" 1) ((259 264) 1) ((266 274) 1) ((291
296) 1) ((298 307) 1) ((324 329) 1) ((331 340) 1) ((357 362) 1) ((364 373) 0)
((396 406) 1) ((429 439) 1) ((462 [...]
+ (phps-mode-test--with-buffer
+ "<?php\n\n$a = $b = $c = 3;\n\nif ($a) {\n echo 'a=',$a;\n} else {\n
echo '$a is undefined!';\n}\nif ($b) {\n echo 'b=',$b;\n} else {\n echo
'$b is undefined!';\n}\nif ($c) {\n echo 'c=',$c;\n} else {\n echo '$c is
undefined!';\n}"
+ "Bookkeeping of typed class variables"
+ (should
+ (equal
+ (phps-mode-test--hash-to-list (phps-mode-lex-analyzer--get-bookkeeping) t)
+ '((" id $a" 1) (" id $b") (" id $c") ((8 10) 1) ((13 15) 1) ((18 20) 1)
((31 33) 1) ((51 53) 1) ((99 101) 1) ((119 121) 1) ((167 169) 1) ((187 189)
1)))))
+
)
(defun phps-mode-test-lex-analyzer ()
- [elpa] externals/phps-mode updated (c08ba09 -> b7b4706), Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode b2c3fa0 01/11: More work on parser generation automation, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode c39a760 02/11: Added saving buffer to file, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 9940d5b 04/11: Fixes for precedence in automation grammar, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 0ea731f 03/11: More work on trying to get automation going, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 2c34cac 06/11: Added debug flag when generating parser, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 6a5233a 07/11: Added failing test for bookkeeping of multiple chained assignments,
Christian Johansson <=
- [elpa] externals/phps-mode 832f1a9 10/11: Added note about bookkeeping syntax coloring theme requirements, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode bfbcc03 05/11: Added flag for allowing default conflict resolution, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 99c4154 09/11: Updated version and change-log, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode 0dd5d89 08/11: Added bookkeeping support of chained variable assignments, Christian Johansson, 2021/09/18
- [elpa] externals/phps-mode b7b4706 11/11: Using Travis.com instead of Travis.org, Christian Johansson, 2021/09/18