adds grid tests
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 2 Aug 2026 13:13:05 +0000 (13:13 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Sun, 2 Aug 2026 13:13:05 +0000 (13:13 +0000)
tester/authored/Grid/RT-Manuscript_locator.js [new symlink]
tester/authored/Grid/test_dictionary.html [new file with mode: 0644]
tester/authored/Grid/test_grid.html [new file with mode: 0644]
tester/authored/Grid/test_matrix.html [new file with mode: 0644]
tester/authored/Grid/test_relation.html [new file with mode: 0644]

diff --git a/tester/authored/Grid/RT-Manuscript_locator.js b/tester/authored/Grid/RT-Manuscript_locator.js
new file mode 120000 (symlink)
index 0000000..041111f
--- /dev/null
@@ -0,0 +1 @@
+../RT-Manuscript_locator.js
\ No newline at end of file
diff --git a/tester/authored/Grid/test_dictionary.html b/tester/authored/Grid/test_dictionary.html
new file mode 100644 (file)
index 0000000..48634d1
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <title>Test: RT Dictionary</title>
+    <script src="RT-Manuscript_locator.js"></script>
+    <script>
+      window.RT.theme_preference('inverse_wheat');
+      window.RT.load('Layout/paginate');
+      window.RT.load('Layout/article_tech_ref');
+      window.RT.load('Element/grid');
+      window.RT.load('Element/theme_selector');
+    </script>
+  </head>
+  <body>
+    <RT·theme-selector></RT·theme-selector>
+    <RT·article>
+      <h1>Dictionary Semantic Wrapper</h1>
+      <p>Validates 1:1 mapping, automatic 2-column formatting, and metadata-driven header generation.</p>
+      
+      <RT·dictionary key="BCD" definition="binary">
+        <RT·entry key="0">0000</RT·entry>
+        <RT·entry key="1">0001</RT·entry>
+        <RT·entry key="2">0010</RT·entry>
+        <RT·entry key="3">0011</RT·entry>
+      </RT·dictionary>
+    </RT·article>
+  </body>
+</html>
diff --git a/tester/authored/Grid/test_grid.html b/tester/authored/Grid/test_grid.html
new file mode 100644 (file)
index 0000000..a7c03d6
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <title>Test: RT Grid Primitive</title>
+    <script src="RT-Manuscript_locator.js"></script>
+    <script>
+      window.RT.theme_preference('inverse_wheat');
+      window.RT.load('Layout/paginate');
+      window.RT.load('Layout/article_tech_ref');
+      window.RT.load('Element/grid');
+      window.RT.load('Element/theme_selector');
+    </script>
+  </head>
+  <body>
+    <RT·theme-selector></RT·theme-selector>
+    <RT·article>
+      <h1>Grid Primitive Translation</h1>
+      <p>Validates the underlying sparse array generation, major axis auto-incrementing, and coordinate overrides.</p>
+      
+      <RT·grid major="x">
+        <RT·e type="column-header" x="1" y="0">Cycles</RT·e>
+        <RT·e type="row-header" x="0" y="1">Row 1</RT·e>
+        <RT·e type="data" x="1-2" y="1">Spanning Data</RT·e>
+        <RT·e type="data" x="1" y="2">Offset Data</RT·e>
+      </RT·grid>
+    </RT·article>
+  </body>
+</html>
diff --git a/tester/authored/Grid/test_matrix.html b/tester/authored/Grid/test_matrix.html
new file mode 100644 (file)
index 0000000..f1e3e38
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <title>Test: RT Matrix</title>
+    <script src="RT-Manuscript_locator.js"></script>
+    <script>
+      window.RT.theme_preference('inverse_wheat');
+      window.RT.load('Layout/paginate');
+      window.RT.load('Layout/article_tech_ref');
+      window.RT.load('Element/grid');
+      window.RT.load('Element/theme_selector');
+    </script>
+  </head>
+  <body>
+    <RT·theme-selector></RT·theme-selector>
+    <RT·article>
+      <h1>Matrix Semantic Wrapper</h1>
+      <p>Validates rigid formatting constraints, mathematical delimiter injection bounds, and exclusion of outer labels.</p>
+      
+      <RT·matrix layout-intention="row-vector">
+        <RT·column-header>
+          <RT·e>X</RT·e>
+          <RT·e>Y</RT·e> 
+        </RT·column-header>
+
+        <RT·vector>
+          <RT·name>V0</RT·name>
+          <RT·e>1</RT·e>
+          <RT·e>0</RT·e>
+        </RT·vector>
+        
+        <RT·vector>
+          <RT·e>0</RT·e>
+          <RT·e>1</RT·e>
+        </RT·vector>
+      </RT·matrix>
+    </RT·article>
+  </body>
+</html>
diff --git a/tester/authored/Grid/test_relation.html b/tester/authored/Grid/test_relation.html
new file mode 100644 (file)
index 0000000..dcc5914
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8">
+    <title>Test: RT Relation</title>
+    <script src="RT-Manuscript_locator.js"></script>
+    <script>
+      window.RT.theme_preference('inverse_wheat');
+      window.RT.load('Layout/paginate');
+      window.RT.load('Layout/article_tech_ref');
+      window.RT.load('Element/grid');
+      window.RT.load('Element/theme_selector');
+    </script>
+  </head>
+  <body>
+    <RT·theme-selector></RT·theme-selector>
+    <RT·article>
+      <h1>Relation Semantic Wrapper</h1>
+      <p>Validates multi-line text wrapping, row distinction gaps, and tuple-scoped named headers.</p>
+      
+      <RT·relation layout-intention="row-tuple">
+        <RT·column-header>
+          <RT·e>Instruction</RT·e>
+          <RT·e>Cycles</RT·e>
+        </RT·column-header>
+
+        <RT·tuple>
+          <RT·name>First instruction</RT·name>
+          <RT·e>ADD</RT·e>
+          <RT·e>1</RT·e>
+        </RT·tuple>
+        
+        <RT·tuple>
+          <RT·e>DIV</RT·e>
+          <RT·e>18. An extended multi-line string test designed to evaluate the physical height measurement of the layout engine and trigger the secondary structural padding pass.</RT·e>
+        </RT·tuple>
+      </RT·relation>
+    </RT·article>
+  </body>
+</html>