Improved the skim test case

This commit is contained in:
Sasha Koshka 2024-02-14 17:40:37 -05:00
parent 736f117fac
commit 5940d47ad7

View File

@ -205,13 +205,21 @@ testString (test,
func TestSkim (test *testing.T) { func TestSkim (test *testing.T) {
testStringSkim (test, testStringSkim (test,
// correct // correct
`+ X:Int `- PrivType: Int
~ RestrictType: Int
+ ComplexType: (. parser:Parser tree:*Tree skim:Bool)
+ X: Int
+ X.[pub]:Int + X.[pub]:Int
+ X.[alreadyExternal] + X.[alreadyExternal]
+ [alreadyExternal] + [alreadyExternal]
+ [pub]:X`, + [pub]:X`,
// input // input
` `- PrivType:Int
~ RestrictType:Int
+ ComplexType: (.
parser:Parser
tree:*Tree
skim:Bool)
+ X:Int + X:Int
+ X.[pub]:Int = 5 + X.[pub]:Int = 5
- X.[priv]:Int = 2 - X.[priv]:Int = 2