Skip to content

Commit 5c026a9

Browse files
author
Jason Kerney
committed
started work on documenting test cases
1 parent c737197 commit 5c026a9

File tree

7 files changed

+49
-1
lines changed

7 files changed

+49
-1
lines changed

.ionide/symbolCache.db

8 KB
Binary file not shown.

contributing.md

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Instead the goal is to use the best aspects of your language to recreate the des
3737

3838
Since the goal is expected behavior then I ask people to start by focusing on the tests. If you use the tests as a guide instead of the target code, you are in a better position for building a language native solution. This solution should be well designed.
3939

40+
You can always refer to this [guide](.\test_cases.md) on the test cases to help you along. (NOTE: This guide is just being developed and may not be complete.)
41+
4042
### A Difference of Paradigm
4143

4244
The initial solutions were done in an Object Oriented paradigm. If your language uses a different paradigm or even supports a different paradigm it is desirable that the refactoring not be held to being Object Oriented. In that case, I expect the tests to be very different.

documentation/contrib/lang.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Instead the goal is to use the best aspects of your language to recreate the des
1313

1414
Since the goal is expected behavior then I ask people to start by focusing on the tests. If you use the tests as a guide instead of the target code, you are in a better position for building a language native solution. This solution should be well designed.
1515

16+
You can always refer to this [guide](.\test_cases.md) on the test cases to help you along. (NOTE: This guide is just being developed and may not be complete.)
17+
1618
### A Difference of Paradigm
1719

1820
The initial solutions were done in an Object Oriented paradigm. If your language uses a different paradigm or even supports a different paradigm it is desirable that the refactoring not be held to being Object Oriented. In that case, I expect the tests to be very different.

documentation/tests/intro.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--bl
2+
(filemeta
3+
(title "Introduction"))
4+
/bl-->
5+
6+
This is to serve as documentation of the _minimum_ test cases you should have if creating a new language. It details the expected behavior of each shape.
7+
8+
### A note on Paradigm
9+
10+
The way these test cases is written may unintentionally favor an Object Oriented paradigm. If you find that to be true, please understand it is not the intent of this document. Please report it to me, or fix it and submit a pull request.

documentation/tests/main.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--bl
2+
(filemeta
3+
(title "Shape Test Cases")
4+
(subtitle "A Guide to Making the Shape Classifier"))
5+
6+
(table-of-contents
7+
(section-main "./intro.md")
8+
)
9+
/bl-->

gittey-config.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@
2626
"command": "booklisp ./Languages/CSharp/documentation/main.md ./Languages/CSharp/readme.md",
2727
"description": "generates the documentation for the C# exercise"
2828
},
29+
{
30+
"name": "docsTests",
31+
"command": "booklisp ./documentation/tests/main.md ./test_cases.md",
32+
"description": "generates the documentation for the C# exercise"
33+
},
2934
{
3035
"name": "docs",
31-
"command": "cls; gittey docsMain; gittey docsJSOO; gittey docsCS",
36+
"command": "cls; gittey docsMain; gittey docsTests; gittey docsJSOO; gittey docsCS",
3237
"description": "generates all the documentations"
3338
},
3439
{

test_cases.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
<!-- GENERATED DOCUMENT! DO NOT EDIT! -->
3+
# Shape Test Cases #
4+
#### A Guide to Making the Shape Classifier ####
5+
6+
## Table Of Contents ##
7+
8+
- [Section 1: Introduction](#user-content-introduction)
9+
10+
## Introduction ##
11+
12+
This is to serve as documentation of the _minimum_ test cases you should have if creating a new language. It details the expected behavior of each shape.
13+
14+
### A note on Paradigm
15+
16+
The way these test cases is written may unintentionally favor an Object Oriented paradigm. If you find that to be true, please understand it is not the intent of this document. Please report it to me, or fix it and submit a pull request.
17+
18+
19+
<!-- GENERATED DOCUMENT! DO NOT EDIT! -->
20+

0 commit comments

Comments
 (0)