Skip to content

Add structured output tests #73

Add structured output tests

Add structured output tests #73

Triggered via pull request December 23, 2023 10:30
Status Failure
Total duration 2m 34s
Artifacts

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
windows-2019
[xUnit.net 00:00:01.24] StructuredOutputTests.tests_parsing_strings-0.structured output [FAIL]
StructuredOutputTests.tests_parsing_strings-0.structured output
System.AggregateException : One or more errors occurred. (Directory: D:\a\visp-fs\visp-fs\tests\Visp.Compiler.UnitTests\parsing-snapshots NotEqual: - Received: tests_parsing_strings-0.structured output.received.txt Verified: tests_parsing_strings-0.structured output.verified.txt FileContent: NotEqual: Received: tests_parsing_strings-0.structured output.received.txt ParsedFile [AnonModule ([Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is: '%s'", Regular, (9,9--9,26)), (9,9--9,26)); Const (String (" this is a multiline string ", Regular, (9,27--13,1)), (9,27--13,1))], (9,1--13,1)), (9,0--13,2)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is: '%s'", Regular, (15,9--15,26)), (15,9--15,26)); Const (String (" this is a multiline string ", TripleQuote, (15,27--19,3)), (15,27--19,3))], (15,1--19,3)), (15,0--19,4)); Expr (FunctionDef (SynSymbol generate-test, None, Args (List [Named (SynSymbol path, (21,19--21,23))], (21,18--21,24)), [LetOrUse (Named (SynSymbol template, (22,7--22,15)), FunctionCall (Symbol (SynSymbol sprintf), [Const (String (" let ``can parse %s`` = TestUtils.runTest %s |> Async.AwaitTask ", TripleQuote, (22,25--26,5)), (22,25--26,5)); Symbol (SynSymbol path); Symbol (SynSymbol path)], (22,17--26,15)), None, (22,3--26,16)); Symbol (SynSymbol template)], (21,1--28,10)), (21,0--28,11)); Expr (LetOrUse (Named (SynSymbol visp_result_todo, (30,0--30,49)), FunctionCall (Symbol (SynSymbol printfn), [Const (String ("test is: '%s'", Regular, (30,9--30,24)), (30,9--30,24)); FunctionCall (Symbol (SynSymbol generate-test), [Const (String ("hello", Regular, (30,40--30,47)), (30,40--30,47))], (30,26--30,47))], (30,1--30,48)), None, (30,0--30,49)), (30,0--30,49)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("%A", Regular, (30,0--30,49)), (30,0--30,49)); Symbol (SynSymbol visp_result_todo)], (30,0--30,49)), (30,0--30,49))], (9,0--30,49))] Verified: tests_parsing_strings-0.structured output.verified.txt ParsedFile [AnonModule ([Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is: '%s'", Regular, (9,9--9,26)), (9,9--9,26)); Const (String (" this is a multiline string ", Regular, (9,27--13,1)), (9,27--13,1))], (9,1--13,1)), (9,0--13,2)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is: '%s'", Regular, (15,9--15,26)), (15,9--15,26)); Const (String (" this is a multiline string ", TripleQuote, (15,27--19,3)), (15,27--19,3))], (15,1--19,3)), (15,0--19,4)); Expr (FunctionDef (SynSymbol generate-test, None, Args (List [Named (SynSymbol path, (21,19--21,23))], (21,18--21,24)), [LetOrUse (Named (SynSymbol template, (22,7--22,15)), FunctionCall (Symbol (SynSymbol sprintf), [Const (String (" let ``can parse %s`` = TestUtils.runTest %s |> Async.AwaitTask ", TripleQuote, (22,25--26,5)), (22,25--26,5)); Symbol (SynSymbol path); Symbol (SynSymbol path)], (22,17--26,15)), None, (22,3--26,16)); Symbol (SynSymbol template)], (21,1--28,10)), (21,0--28,11)); Expr (LetOrUse (Named (SynSymbol visp_result_todo, (30,0--30,49)), FunctionCall (Symbol (SynSymbol prin
windows-2019
[xUnit.net 00:00:01.29] StructuredOutputTests.tests_parsing_strings-1.structured output [FAIL]
StructuredOutputTests.tests_parsing_strings-1.structured output
System.AggregateException : One or more errors occurred. (Directory: D:\a\visp-fs\visp-fs\tests\Visp.Compiler.UnitTests\parsing-snapshots NotEqual: - Received: tests_parsing_strings-1.structured output.received.txt Verified: tests_parsing_strings-1.structured output.verified.txt FileContent: NotEqual: Received: tests_parsing_strings-1.structured output.received.txt ParsedFile [AnonModule ([Expr (LetOrUse (Named (SynSymbol value, (8,5--8,10)), Const (String ("r:\rt:\tn:\na:\a\"", Regular, (8,11--8,31)), (8,11--8,31)), None, (8,1--8,31)), (8,0--8,32)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is '%s'", Regular, (10,9--10,25)), (10,9--10,25)); Symbol (SynSymbol value)], (10,1--10,31)), (10,0--10,32)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is '%s'", Regular, (11,9--11,25)), (11,9--11,25)); Const (String ("r:\rt:\tn:\na:\a", TripleQuote, (11,26--11,48)), (11,26--11,48))], (11,1--11,48)), (11,0--11,49)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is '%s'", Regular, (12,9--12,25)), (12,9--12,25)); Const (String ("r:\rt:\tn:\na:\a", TripleQuote, (12,26--12,50)), (12,26--12,50))], (12,1--12,50)), (12,0--12,51)); Expr (FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is '%s'", Regular, (13,9--13,25)), (13,9--13,25)); Const (String (" multiple lines are okay? ", TripleQuote, (13,26--15,3)), (13,26--15,3))], (13,1--15,3)), (13,0--15,4)); Expr (Begin ([Begin ([Begin ([FunctionCall (Symbol (SynSymbol printfn), [Const (String ("string is '%s'", Regular, (19,15--19,31)), (19,15--19,31)); Const (String (" multiple lines are okay? ", TripleQuote, (19,32--21,9)), (19,32--21,9))], (19,7--21,9))], Do, (18,5--21,10))], Do, (17,3--22,5))], Do, (16,1--22,6)), (16,0--22,7)); Expr (FunctionDef (SynSymbol genTestHeader, None, Args (List [Named (SynSymbol moduleName, (24,19--24,29))], (24,18--24,30)), [ThreadLast ([Expr (FunctionCall (Symbol (SynSymbol sprintf), [Const (String (" // AUTO GENERATED // DO NOT MODIFY BY HAND namespace %s open Xunit module %s ", TripleQuote, (25,16--34,5)), (25,16--34,5)); Symbol (SynSymbol moduleName); Symbol (SynSymbol moduleName)], (25,8--34,27)), (25,7--34,28))], (25,3--34,28))], (24,1--35,5)), (24,0--35,6)); Expr (LetOrUse (Named (SynSymbol lf, (37,5--37,7)), Symbol (SynSymbol System.Environment.NewLine), None, (37,1--37,34)), (37,0--37,35)); Expr (FunctionDef (SynSymbol genTestTemplate, None, Args (List [Typed (Named (SynSymbol prefix, (39,22--39,28)), Ident string, (39,21--39,37)); Typed (Named (SynSymbol path, (39,39--39,43)), Ident string, (39,38--39,52))], (39,20--39,53)), [LetOrUse (Named (SynSymbol path, (40,7--40,11)), DotMethod (Symbol (SynSymbol path), SynSymbol Replace, [Const (String ("\\", Regular, (40,27--40,31)), (40,27--40,31)); Const (String ("/", Regular, (40,32--40,35)), (40,32--40,35))], Tuple, (40,13--40,35)), None, (40,3--40,36)); LetOrUse (Named (SynSymbol testname, (41,7--41,15)), ThreadLast ([Exp
windows-2019
Target "Test" has thrown an exception
windows-2019
Process completed with exit code 1.