We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503b462 commit dfe1492Copy full SHA for dfe1492
vyxal/test.ps1
@@ -0,0 +1,25 @@
1
+function Assert-MatchTests {
2
+ param (
3
+ [Parameter(Mandatory = $true, ValueFromPipeline)] $TestResult
4
+ )
5
+
6
+ if ($TestResult) {
7
+ Write-Error "Output does not match expected results."
8
+ }
9
+}
10
11
+# Location of the vyxal.jar file
12
+# You will need to readjust this line to fit with the name of the .jar file in this folder.
13
+$vyxal = "$PSScriptRoot\vyxal.jar"
14
15
+$Error.clear()
16
+java -jar $vyxal --file "$PSScriptRoot\codepage.vy" &&
17
+java -jar $vyxal --file "$PSScriptRoot\hello.vy" &&
18
+ForEach-Object 'foo';
19
20
+if ($Error -or !$?) {
21
+ "*** VYXAL TESTS FAILED ***"
22
23
+else {
24
+ "VYXAL TESTS PASSED"
25
0 commit comments