File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 44
55using LibGit2Sharp ;
66
7- using Microsoft . CodeAnalysis . CSharp . Syntax ;
8-
97namespace Generators ;
108
119internal record TestCase (
@@ -23,9 +21,13 @@ internal static class CanonicalData
2321
2422 static CanonicalData ( ) => ProbSpecs . Sync ( ) ;
2523
26- internal static TestCase [ ] Parse ( Exercise exercise ) =>
27- Parse ( JsonNode . Parse ( File . ReadAllText ( Paths . CanonicalDataFile ( exercise ) ) ) ! . AsObject ( ) , ImmutableQueue < string > . Empty )
24+ internal static TestCase [ ] Parse ( Exercise exercise )
25+ {
26+ var json = File . ReadAllText ( Paths . CanonicalDataFile ( exercise ) ) ;
27+ var jsonNode = JsonNode . Parse ( json ) ! . AsObject ( ) ;
28+ return Parse ( jsonNode , ImmutableQueue < string > . Empty )
2829 . ToArray ( ) ;
30+ }
2931
3032 private static IEnumerable < TestCase > Parse ( JsonObject jsonObject , ImmutableQueue < string > path )
3133 {
You can’t perform that action at this time.
0 commit comments