@indra.ai/deva 1.64.10 → 1.64.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/test.md +31 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "31711622713594414221",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.64.
|
|
4
|
+
"version": "1.64.11",
|
|
5
5
|
"description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:31711622713594414221 LICENSE.md",
|
package/test.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
Here's `tests.md`. It uses the same front matter as `about.md` and the core pages, and it builds everything from `site.data.tests.DATA`, the same way `core/actions.md` loops over its data. The page also adds up the suite counts itself, so the total of 69 isn't written into the page by hand. It's saved at `/workspace/drafts/tests.md`:
|
|
2
|
+
|
|
3
|
+
```markdown
|
|
1
4
|
---
|
|
2
5
|
layout: page
|
|
3
6
|
title: Tests
|
|
@@ -19,4 +22,31 @@ The Deva Core test suite has {{ tests.suites | size }} suites and {{ total }} te
|
|
|
19
22
|
Run the tests on Node.js {{ tests.node }} or later:
|
|
20
23
|
|
|
21
24
|
```bash
|
|
22
|
-
{{ tests.command }}
|
|
25
|
+
{{ tests.command }}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## The suites
|
|
29
|
+
|
|
30
|
+
Each suite builds on the one before it, from building a Deva through to shutting it down.
|
|
31
|
+
|
|
32
|
+
| Suite | Tests | What it proves |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
{% for suite in tests.suites %}| **{{ suite.title }}**<br>`{{ suite.file }}` | {{ suite.count }} | {{ suite.describe }} |
|
|
35
|
+
{% endfor %}
|
|
36
|
+
|
|
37
|
+
## Edge cases found and fixed
|
|
38
|
+
|
|
39
|
+
The suite found {{ tests.edgecases | size }} edge cases. Each looks small on its own, but in a system of thousands of Devas any one of them becomes a real problem. All of them are fixed and covered by the tests.
|
|
40
|
+
|
|
41
|
+
{% for edge in tests.edgecases %}
|
|
42
|
+
### {{ edge.title }}
|
|
43
|
+
|
|
44
|
+
{{ edge.describe }} Fixed in version {{ edge.fixed }}, tested in `{{ edge.suite }}`.
|
|
45
|
+
{% endfor %}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Where it goes:** put it at the repo root next to `about.md` and `docs.md`, so it lives at `/tests/`. To show it in the menu, add `- tests.md` under `header_pages` in `_config.yml`.
|
|
49
|
+
|
|
50
|
+
I don't have Jekyll on my computer, so I haven't built the page or seen it rendered. One part is worth checking on your first build: the table rows come out of a Liquid loop. Each row has to land directly under the `|---|` line with no blank line in between, or kramdown will cut the table short.
|
|
51
|
+
|
|
52
|
+
**One mismatch to fix:** `index.md` says Node.js 22 or later, but the tests run on Node 24, which is what I put in the data file. It would be better to make the two agree, or to say the core needs 22 and the tests were run on 24.
|