-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for errors while unflattening JSON with -Infinity
- Loading branch information
1 parent
c5aa125
commit b90a05a
Showing
4 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
000 All tests pass: 'true'. | ||
010 No error: 'true'. | ||
020 Correct values: 'true'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Autogenerated Vireo assembly file | ||
// Generated on 07/16/2024 14:20:22 | ||
//--------------------------------------------------- | ||
//VI Definition: ::VireoDevSystem::Interactive::WebApp::UnflattenJSONWithInfinity.gviweb | ||
define (WebApp%3A%3AUnflattenJSONWithInfinity%2Egviweb dv(.VirtualInstrument ( | ||
Locals: c( // Data Space | ||
e(dv(.String 'WebApp::UnflattenJSONWithInfinity.gviweb')local0) | ||
ce(dv(.ErrorCluster (false 0 '' ))c1) | ||
ce(dv(.String '[1,2,-Infinity,inf,5]')c2) | ||
ce(dv(a(.Double *) ())c3) | ||
e(a(.Double *) local4) | ||
e(.ErrorCluster local5) | ||
e(.ErrorCluster local6) | ||
e(.Int32 local7) | ||
e(.Boolean local8) | ||
de(dv(.Boolean false)dataItem_No_Error) | ||
e(.Boolean local10) | ||
ce(dv(a(.Double *) (1 2 -inf inf 5))c11) | ||
e(.Boolean local12) | ||
de(dv(.Boolean false)dataItem_CorrectValues) | ||
e(.Boolean local14) | ||
e(.Boolean local15) | ||
de(dv(.Boolean false)dataItem_AllPass) | ||
e(.Boolean local17) | ||
e(a(.String *) local18) | ||
e(dv(.Boolean true)local19) | ||
e(dv(.Boolean false)local20) | ||
e(dv(.Boolean false)local21) | ||
) | ||
clump(1 | ||
Copy(c1 local5) | ||
Copy(c3 local4) | ||
UnflattenFromJSON(c2 local4 local18 local19 local20 local21 local5 ) | ||
Copy(local5 local6) | ||
Copy(local6.code local7) | ||
IsEQ0(local7 local8) | ||
Copy(local8 dataItem_No_Error) | ||
IsEQ(c11 local4 local12) | ||
Copy(local12 dataItem_CorrectValues) | ||
And(local12 local8 local15) | ||
Copy(local15 dataItem_AllPass) | ||
Printf ("000 All tests pass: '%s'.\n" dataItem_AllPass) | ||
Printf ("010 No error: '%s'.\n" dataItem_No_Error) | ||
Printf ("020 Correct values: '%s'.\n" dataItem_CorrectValues) | ||
/* Clump Ended. */ ) | ||
))) | ||
enqueue (WebApp%3A%3AUnflattenJSONWithInfinity%2Egviweb) | ||
//Finished!! :D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters