• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

Revision1aec028824d278e9e00c2ae7724e7ff0f1abfe98 (tree)
Zeit2024-08-31 19:31:17
AutorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

Added Demo & Try Robot/GivenWhenThen specs for RPy-writer

Ändern Zusammenfassung

Diff

diff -r a3f2c9ed0262 -r 1aec028824d2 TestDoubles_packages/TestDoubles-aigr-sieve/doc/index.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/TestDoubles_packages/TestDoubles-aigr-sieve/doc/index.rst Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,10 @@
1+TestDoubles-aigr-sieve (local)
2+==============================
3+
4+.. note:: Only on my local laptop, for now
5+
6+.. toctree::
7+ :glob:
8+
9+ *
10+ */index
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/GevenWhenThen/Demo/demo1.robot
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/GevenWhenThen/Demo/demo1.robot Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,15 @@
1+*** Settings ***
2+Documentation Example using the reStructuredText format.
3+Library OperatingSystem
4+
5+*** Variables ***
6+${MESSAGE} Hello, world!
7+
8+*** Test Cases ***
9+My Test
10+ [Documentation] Example test.
11+ Log ${MESSAGE}
12+ My Keyword ${CURDIR}
13+
14+Another Test
15+ Should Be Equal ${MESSAGE} Hello, world!
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/GevenWhenThen/Demo/index.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/GevenWhenThen/Demo/index.rst Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,56 @@
1+DEMO (1)
2+========
3+
4+.. seealso:: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#space-separated-format
5+
6+ReStructuredText example
7+------------------------
8+
9+This text is outside code blocks and thus ignored.
10+
11+.. code:: robotframework
12+
13+ *** Settings ***
14+ Documentation Example using the reStructuredText format.
15+ Library OperatingSystem
16+
17+ *** Variables ***
18+ ${MESSAGE} Hello, world!
19+
20+ *** Test Cases ***
21+ My Test
22+ [Documentation] Example test.
23+ Log ${MESSAGE}
24+ My Keyword ${CURDIR}
25+
26+ Another Test
27+ Should Be Equal ${MESSAGE} Hello, world!
28+
29+Also this text is outside code blocks and ignored. Code blocks not
30+containing Robot Framework data are ignored as well.
31+
32+.. code:: robotframework
33+
34+ # Both space and pipe separated formats are supported.
35+
36+ | *** Keywords *** | | |
37+ | My Keyword | [Arguments] | ${path} |
38+ | | Directory Should Exist | ${path} |
39+
40+.. code:: python
41+
42+ # This code block is ignored.
43+ def example():
44+ print('Hello, world!')
45+
46+
47+With INCLUEDED .Robot file
48+--------------------------
49+.. literalinclude:: demo1.robot
50+ :language: robotframework
51+
52+.. note::
53+ * the :file:`demo1.robot` contains the same code as the (top) above example
54+ * Now, however, that test is syntax-highlighted (in emacs) -- in html it is the same
55+ * See https://github.com/kopoli/robot-mode -- it is manually downloaded in ~/emacs/
56+
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/GevenWhenThen/Try1/index.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/GevenWhenThen/Try1/index.rst Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,9 @@
1+Try(1) Robot specs for RPy (writer)
2+===================================
3+
4+Top level test
5+--------------
6+
7+.. literalinclude:: top.robot
8+ :language: robotframework
9+
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/GevenWhenThen/Try1/top.robot
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/GevenWhenThen/Try1/top.robot Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,15 @@
1+
2+*** Test Cases ***
3+
4+Generate rPython
5+ [Documentation] Every (full, basic) AIGR should result in (valid) rpython codde
6+ GIVEN a valid basic ${AIGR}
7+ WHEN the RPy backend in called
8+ THEN valid rPython is generated
9+ [Documentation] *Valid* can te verified by compiling it.
10+
11+Run rPython
12+ [Documentation] Generated code should match the exectations, when run.
13+ GIVEN a valid basic ${$AIGR}
14+ WHEN the RPy backend in called
15+ THEN the run code should match the expexted ${OUTPUT}, given @{FILTERS}
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/GevenWhenThen/index.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/GevenWhenThen/index.rst Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,10 @@
1+castle-RPy-writer (local)
2+=========================
3+
4+.. note:: Only on my local laptop, for now
5+
6+.. toctree::
7+ :glob:
8+
9+ *
10+ */index
diff -r a3f2c9ed0262 -r 1aec028824d2 core_packages/castle-RPy-writer/doc/index.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core_packages/castle-RPy-writer/doc/index.rst Sat Aug 31 12:31:17 2024 +0200
@@ -0,0 +1,10 @@
1+castle-RPy-writer (local)
2+=========================
3+
4+.. note:: Only on my local laptop, for now
5+
6+.. toctree::
7+ :glob:
8+
9+ *
10+ */index