Skip to content

Commit

Permalink
Add more test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed May 12, 2024
1 parent 9962a11 commit c1190ac
Show file tree
Hide file tree
Showing 31 changed files with 340 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/asterisk1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": "a*"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/asterisk2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "b*"
}
]
}
16 changes: 16 additions & 0 deletions packages/circom/tests/circuits/asterisk3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": ".*"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/asterisk4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".*"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/asterisk5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": ".*"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/asterisk6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".*"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "^a"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "^(a|b|c)"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "^.+"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "(\n|^)a+"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "(\n|^).+"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/caret6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "(\n|^)[^abc]+"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/dot1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "."
}
]
}
16 changes: 16 additions & 0 deletions packages/circom/tests/circuits/dot2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "."
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/multi_accept1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "(b|c)"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/multi_accept2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "(b|c)*"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/multi_accept3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "(b|c)+"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/multi_accept4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "([^abc]+|c+)+"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/multi_accept5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "(\r|^)a"
},
{
"is_public": true,
"regex_def": "([^abc]+|c+)+"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/plus1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": "a+"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/plus2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": "b+"
}
]
}
16 changes: 16 additions & 0 deletions packages/circom/tests/circuits/plus3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parts": [
{
"is_public": false,
"regex_def": "a"
},
{
"is_public": true,
"regex_def": ".+"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/plus4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".+"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/plus5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".+"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/plus6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".+"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/question1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "a?"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/question2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": "a?"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
12 changes: 12 additions & 0 deletions packages/circom/tests/circuits/question3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parts": [
{
"is_public": true,
"regex_def": ".?"
},
{
"is_public": false,
"regex_def": "b"
}
]
}
16 changes: 16 additions & 0 deletions packages/circom/tests/circuits/question4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parts": [
{
"is_public": false,
"regex_def": "aa"
},
{
"is_public": true,
"regex_def": "a?"
},
{
"is_public": false,
"regex_def": "a"
}
]
}
8 changes: 8 additions & 0 deletions packages/circom/tests/circuits/reveal_check1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parts": [
{
"is_public": true,
"regex_def": "aba"
}
]
}
Loading

0 comments on commit c1190ac

Please sign in to comment.