[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/yaml 900ca55584 119/124: Fix failing test for parsing s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/yaml 900ca55584 119/124: Fix failing test for parsing scalars |
Date: |
Fri, 29 Nov 2024 16:00:11 -0500 (EST) |
branch: externals/yaml
commit 900ca55584f4f2fbba1342e095323efdfd248775
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>
Fix failing test for parsing scalars
---
yaml-tests.el | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/yaml-tests.el b/yaml-tests.el
index b8af0a1c32..acf56e5176 100644
--- a/yaml-tests.el
+++ b/yaml-tests.el
@@ -41,17 +41,19 @@
(ert-deftest yaml-parsing-scalar ()
"Test conversion of !!str to JSON scalar"
- (should (equal :null (yaml--resolve-scalar-tag "null")))
- (should (equal :false (yaml--resolve-scalar-tag "false")))
- (should (equal t (yaml--resolve-scalar-tag "true")))
- (should (equal "xtruex" (yaml--resolve-scalar-tag "xtruex")))
- (should (equal 0 (yaml--resolve-scalar-tag "0")))
- (should (equal 10 (yaml--resolve-scalar-tag "10")))
- (should (equal "x10" (yaml--resolve-scalar-tag "x10")))
- (should (equal 10.52 (yaml--resolve-scalar-tag "10.52")))
- (should (equal 52.0 (yaml--resolve-scalar-tag ".52e2")))
- (should (equal 1.0e+INF (yaml--resolve-scalar-tag ".Inf")))
- (should (equal "hello world" (yaml--resolve-scalar-tag "hello world"))))
+ (let* ((yaml--parsing-null-object :null)
+ (yaml--parsing-false-object :false))
+ (should (equal :null (yaml--resolve-scalar-tag "null")))
+ (should (equal :false (yaml--resolve-scalar-tag "false")))
+ (should (equal t (yaml--resolve-scalar-tag "true")))
+ (should (equal "xtruex" (yaml--resolve-scalar-tag "xtruex")))
+ (should (equal 0 (yaml--resolve-scalar-tag "0")))
+ (should (equal 10 (yaml--resolve-scalar-tag "10")))
+ (should (equal "x10" (yaml--resolve-scalar-tag "x10")))
+ (should (equal 10.52 (yaml--resolve-scalar-tag "10.52")))
+ (should (equal 52.0 (yaml--resolve-scalar-tag ".52e2")))
+ (should (equal 1.0e+INF (yaml--resolve-scalar-tag ".Inf")))
+ (should (equal "hello world" (yaml--resolve-scalar-tag "hello world")))))
(ert-deftest yaml-process-literal-text-test ()
"Test processing literal strings"
- [elpa] externals/yaml 0db4ab0a1e 046/124: Improve parsing error message, (continued)
- [elpa] externals/yaml 0db4ab0a1e 046/124: Improve parsing error message, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml e2fe7e2e57 042/124: Merge pull request #3 from zkry/add-yaml-spec-json, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 6d52649383 076/124: Fix list encoding indentation #29, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml bda9a00090 058/124: return alist key as a symbol as a default, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 45aa819a4f 068/124: Add MELPA tag to README, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 37c176fc5c 086/124: Fix the anchor parse event turning maps into lists, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml f546dac2a8 082/124: Initial implementation of position storage, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml c07cc6d0f3 089/124: Merge pull request #35 from zkry/fix-yaml-anchor-match-definition, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 14e6e4bc3d 095/124: Merge pull request #37 from zkry/fix-folded-block-parsing-error, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 0ac7f365bb 104/124: Merge pull request #41 from zkry/fix-property-prop-bug, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 900ca55584 119/124: Fix failing test for parsing scalars,
ELPA Syncer <=
- [elpa] externals/yaml 964ef3b105 014/124: process literal and folded, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml a1d6e3211c 007/124: Initial working yaml-parser, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 5c52737f17 005/124: Start on event handling, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml aba7c19c47 020/124: Remove yaml spec, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 7c6c1e1abf 017/124: Rename names according to elisp standards, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 9a8ae65986 016/124: Reduce stack usage, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 9e18a714f5 006/124: completing tracer to parse basic key-value, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 0c51603d6d 018/124: Add tracing; fix linting errors, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 49f4ebd8ab 011/124: Minor bug fixes, ELPA Syncer, 2024/11/29
- [elpa] externals/yaml 70429bd21b 025/124: Fix s-l+block-indented bug; fix auto-detect-indent bug, ELPA Syncer, 2024/11/29