-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better tests and document integration tests
- Loading branch information
Showing
3 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Real use-cases | ||
In this folder you can find tests of real applications of pushdown automata. | ||
|
||
## Balanced parantheses | ||
This pushdown automaton can check if the input word has balanced parantheses. This is how the language is defined: | ||
$$` | ||
L = \{ w \mid w \text{ is a string of balanced parentheses} \} | ||
`$$ | ||
**Accepted words that are tested:** | ||
``` | ||
-> (()()) | ||
-> ()()() | ||
-> ((())) | ||
-> ()(()()) | ||
``` | ||
|
||
**Not accepted words that are tested:** | ||
``` | ||
-> (()() | ||
-> ()) | ||
-> ((()) | ||
-> )()() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters