[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode a418e41 26/62: Integration-test now comparing
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode a418e41 26/62: Integration-test now comparing nest-location-stack as well |
Date: |
Tue, 20 Apr 2021 10:56:17 -0400 (EDT) |
branch: externals/phps-mode
commit a418e412d2f1733719c7c64dc6bd4cc141529f7d
Author: Christian Johansson <christian@mediastrategi.se>
Commit: Christian Johansson <christian@mediastrategi.se>
Integration-test now comparing nest-location-stack as well
---
phps-mode-test.el | 29 +++++++++++++++++------------
test/phps-mode-test-integration.el | 2 +-
2 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/phps-mode-test.el b/phps-mode-test.el
index 603d6a4..d8ab8d9 100644
--- a/phps-mode-test.el
+++ b/phps-mode-test.el
@@ -30,19 +30,21 @@
(defmacro phps-mode-test--incremental-vs-intial-buffer (source &optional title
&rest change)
"Set up test buffer with SOURCE, TITLE, apply CHANGE and compare incremental
values with initial values."
`(let ((test-buffer-incremental (generate-new-buffer "test-incremental"))
- (incremental-states nil)
- (incremental-tokens nil)
- (incremental-imenu nil)
- (incremental-indent nil)
- (incremental-buffer nil)
- (incremental-bookkeeping nil)
+ (incremental-states)
+ (incremental-tokens)
+ (incremental-imenu)
+ (incremental-indent)
+ (incremental-buffer)
+ (incremental-bookkeeping)
+ (incremental-nest-location-stack)
(test-buffer-initial (generate-new-buffer "test-initial"))
- (initial-states nil)
- (initial-tokens nil)
- (initial-imenu nil)
- (initial-indent nil)
- (initial-buffer nil)
- (initial-bookkeeping nil))
+ (initial-states)
+ (initial-tokens)
+ (initial-imenu)
+ (initial-indent)
+ (initial-buffer)
+ (initial-bookkeeping)
+ (initial-nest-location-stack))
;; Setup incremental buffer
(switch-to-buffer test-buffer-incremental)
@@ -59,6 +61,7 @@
(setq incremental-indent (phps-mode-test--hash-to-list
phps-mode-lex-analyzer--lines-indent))
(setq incremental-buffer (buffer-substring (point-min) (point-max)))
(setq incremental-bookkeeping (phps-mode-test--hash-to-list
phps-mode-lex-analyzer--bookkeeping t))
+ (setq incremental-nest-location-stack
phps-mode-lex-analyzer--nest-location-stack)
;; Setup incremental buffer
(switch-to-buffer test-buffer-initial)
@@ -73,6 +76,7 @@
(setq initial-indent (phps-mode-test--hash-to-list
phps-mode-lex-analyzer--lines-indent))
(setq initial-buffer (buffer-substring (point-min) (point-max)))
(setq initial-bookkeeping (phps-mode-test--hash-to-list
phps-mode-lex-analyzer--bookkeeping t))
+ (setq initial-nest-location-stack
phps-mode-lex-analyzer--nest-location-stack)
;; Run tests
(phps-mode-debug-message
@@ -87,6 +91,7 @@
(should (equal initial-indent incremental-indent))
(should (equal initial-imenu incremental-imenu))
(should (equal initial-bookkeeping incremental-bookkeeping))
+ (should (equal initial-nest-location-stack
incremental-nest-location-stack))
(kill-buffer test-buffer-incremental)
(kill-buffer test-buffer-initial)
diff --git a/test/phps-mode-test-integration.el
b/test/phps-mode-test-integration.el
index 04b8601..5891e5d 100644
--- a/test/phps-mode-test-integration.el
+++ b/test/phps-mode-test-integration.el
@@ -306,7 +306,7 @@
(defun phps-mode-test-integration ()
"Run test for integration."
- (setq debug-on-error t)
+ ;; (setq debug-on-error t)
;; (setq phps-mode-analyzer--process-on-indent-and-imenu t)
(phps-mode-test-integration--incremental-vs-initial-buffers)
;; (phps-mode-test-integration--whitespace-modifications)
- [elpa] externals/phps-mode aeec1d2 55/62: Removed comment, (continued)
- [elpa] externals/phps-mode aeec1d2 55/62: Removed comment, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 62e7617 61/62: Merged GitHub, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode cd3bbfd 02/62: More work on PHP 8.0 lex analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 804a42e 09/62: Most of lex analyzer implemented, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 9c63f7d 16/62: Passed first old tests for lexer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode e624011 19/62: White-space fixes for lexer unit tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode d893f7f 22/62: Passing some more tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode c1ab121 25/62: Work on making integration-tests pass, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode ad4e825 20/62: Added some new lex analyzer tests for PHP 8.0 tokens, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a418e41 26/62: Integration-test now comparing nest-location-stack as well,
Christian Johansson <=
- [elpa] externals/phps-mode f1b513c 27/62: Passed another integration test, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a900472 29/62: Passed bookkeeping tests, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 685375c 31/62: Passing all unit tests after updated lex-analyzer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 050fe6a 36/62: Updated version and modified date, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode ec19574 43/62: More implementation of grammar, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a99284a 39/62: Added TODO item, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 209055b 62/62: Updated date and version, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 86de51b 51/62: Fixed bug with incremental nesting stack, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode a164e82 33/62: Updated README about PHP 8.0 lexer, Christian Johansson, 2021/04/20
- [elpa] externals/phps-mode 5a3bee3 40/62: More work on implementing PHP 8.0 grammar, Christian Johansson, 2021/04/20