[swift] fix broken swift test build (#7633) (#7634)

* [swift] fix broken swift test build (#7633)

* [swift] fix unused variable (#7633)

* [swift] update generated code (#7633)

* [swift] add binary & json test for nan, inf, -inf for swift (#7633)

* [swift] use just '.infinity' instead of '+.infinity' (#7633)

* [swift] remove commented code (#7633)

Co-authored-by: Derek Bailey <derekbailey@google.com>
Co-authored-by: mustiikhalil <26250654+mustiikhalil@users.noreply.github.com>
This commit is contained in:
mr-swifter
2022-11-11 20:36:47 +03:00
committed by GitHub
parent 879622fc57
commit 74756e5d1b
7 changed files with 389 additions and 98 deletions

14
tests/nan_inf_test.fbs Normal file
View File

@@ -0,0 +1,14 @@
namespace Swift.Tests;
table NanInfTable
{
default_nan:double = nan;
default_inf:double = inf;
default_ninf:double = -inf;
value_nan:double;
value_inf:double;
value_ninf:double;
value:double;
}
root_type NanInfTable;